12.10.8 • Published 2 years ago
navbar-ui v12.10.8
Navbar-ui
This is the actual React component for the navbar - it is a "dumb" component and expects properties to be passed.
Props
type NavProps = {
clients: any;
msps: any;
menu: any;
user: any;
clientChange: (client: any) => {};
mspChange: (msp: any) => {};
showNewDashboardsLink?: boolean;
docURL: string;
healthPortal: string;
supportPortal: string;
logoPath?: string;
};
Usage
<Navbar
clients={clients}
msps={msps}
menu={menu}
user={user}
clientChange={clientChange}
mspChange={mspChange}
showNewDashboardsLink={showNewDashboardsLink}
docURL={docURL}
healthPortal={healthPortal}
supportPortal={supportPortal}
logoPath={logoPath}
/>
Also includes an example app - how to run
- Go to /example
- Run
yarn start
Making navbar changes
- make change
test in example app
update version in package.json
- update data-version in /navbar-ui/src/components/Navbar/index.tsx
- run
yarn rollup:build
to create new package - run
npm publish
to push new version to our private registry - have you updated your npm config to know about our private registry?
12.10.8
2 years ago