-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Auth Web - Implements Shared Breadcrumb #1874
Changes from all commits
70a070e
c878650
33a9c5e
105a656
381fe03
069a377
1663206
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
@import "$assets/scss/theme.scss"; | ||
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import { BreadcrumbIF } from '@bcrs-shared-components/interfaces' | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is this common for all applications? if so we can import from shared components only. We don't have a resources folder yet. Can we use this file inside the util folder for better structure? This will be one file inside folder There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This isn't common for all as of yet. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. To follow up on this, it will be tricky as until each UI has a set configuration object. |
||
|
||
export const HomeBreadCrumb: BreadcrumbIF = { | ||
text: 'Business Registry Home', | ||
to: { name: 'home' }, | ||
href: `${sessionStorage.getItem('AUTH_WEB_URL')}` | ||
} | ||
|
||
export const DashboardBreadcrumb: BreadcrumbIF = { | ||
text: 'My Business Registry', | ||
to: { name: 'business' }, | ||
href: `${sessionStorage.getItem('AUTH_WEB_URL')}/business` | ||
} | ||
|
||
export const StaffDashboardBreadcrumb: BreadcrumbIF = { | ||
text: 'Staff Dashboard', | ||
to: { name: 'staff-dashboard' }, | ||
href: `${sessionStorage.getItem('AUTH_WEB_URL')}/staff/dashboard/active` | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is good for now. Once we minify and build @bcrs-shared-components , we can avoid this pattern 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome, yea i look forward to learning more about that approach!