@lithiamotors/lpp-nav-bar
v2.4.2
Published
LPP nav bar with drawer menu.
Downloads
12
Maintainers
Keywords
Readme
@lithiamotors/lpp-nav-bar
Note: this lpp-nav-bar has been replaced by the lad-app-bar package.
Implementation
import { MuiThemeProvider } from '@material-ui/core';
import LppMuiTheme from '@lithiamotors/lpp-mui-theme';
import LppNavBar from "@lithiamotors/lpp-nav-bar"
const primaryLinks = [
{
text: 'Test Link - Lightbulb Icon',
link: 'https://google.com',
disabled: true,
selected: false,
icon: 'lightbulb',
},
{
text: 'Test Link - Default Icon',
link: 'https://google.com',
disabled: true,
selected: false,
},
];
const secondaryLinks = [
{
text: 'Alert Message (Custom Function)',
callback: () => alert('Hello!'),
display: user.isAuthorized,
preventDrawerClose: true
},
];
export default function(props) {
return (
<MuiThemeProvider theme={LppMuiTheme}>
<LppNavBar Title='LPP' subTitle='Lien Payoff Center' primaryLinks={primaryLinks} secondaryLinks={secondaryLinks} environment='DEVELOPMENT' drawerEnabled='true' />
{props.children}
</MuiThemeProvider>
)
}
Version 2.4.2 (feature/mnygren-165026-4)
- Updated README with mention that this package has been replaced by lad-app-bar.
Version 2.4.0 (feature/abarnes-10762)
- Added new property object
buttonParams
. this allows the banner to display anaction
button to which they can pass a callback function (buttonCallback
)
Version 2.3.1 (feature/abarnes-003)
- Added new property
drawerEnabled
. this allows the drawer to not show if the app does not want the side navigation at any point
Version 2.2.2 (feature/abarnes-002)
- Updated the font weight of
title
andsubTitle
Version 2.2.0 (feature/abarnes-001)
- Update
appAbv
prop totitle
prop, defaults to LPP - Updated
title
prop tosubTitle
prop defaluts to Lien Payoff Center - Added
LOCAL
environment prop with the associated color
Version 2.1.0 (feature/cmorrissey-106704)
- Added
appAbv
prop, defaults to LPP - Restructured and componentized module (moved styles out, composed more modularly)
- Moved Menu Icon and Drawer menu to Left
- Added Environment Tab to Right
Version 2.0.0 (feature/cmorrissey-79227)
- Upgraded to MUI v5
Version 1.0.5 (develop)
- Changed padding on left side to match gutter size (24px)
Version 1.0.4 (feature/cmorrissey-68837)
- Updated nav bar icon and style
Version 1.0.3 (feature/cmorrissey-63539)
- Changed default header and hamburger color to white
Version 1.0.2 (feature/cmorrissey-46992)
- Added preventDrawerClose value. By default the modal closes on click, but we want to add an option to bypass that close. Useful for keeping the drawer open while using dev tools.
Version 1.0.1 (feature/cmorrissey-46992)
- Added display value, defaults to true but allows easy custom logic in host app
Version 1.0.0 (feature/cmorrissey-46992)
- Added secondary array for sublinks
Version 1.0.0-alpha.5 (feature/cmorrissey-readme-updates)
- Updated Readme
Version 1.0.0-alpha.4
- Updated Readme
Version 1.0.0-alpha.3
- Currently supporting SVG's
- This is being done by referencing the SVG as a module instead of a file path. Microbundle will not accknowledge the SVG's correct path if specified in the source file. The source file will fail to build, but the dist file will succeed.
- EX:
import mySVG from 'mySVG.svg'
instead ofimport mySVG from './mySVG.svg'
- Code copied from old Create React Library