1.0.1 • Published 5 years ago
@seek/anz-candidate-header-footer-standalone v1.0.1
anz-candidate-header-footer-standalone
This package exports a standalone build of the SEEK ANZ candidate header/footer components. You can load it from npm or directly from unpkg
Usage
All assets are located in the dist directory
Add the HTML
The following variations are available:
header_au.htmlheader_nz.htmlheader_au_career-advice.htmlheader_nz_career-advice.htmlfooter_au.htmlfooter_nz.html
Load the JS and CSS
seek-candidate-header-footer.jsseek-candidate-header-footer.css
Update Authentication status
Once the app has loaded you should update the authentication status of the header.
If the user is logged in
SeekHeaderFooter.updateProps({
authenticationStatus: 'authenticated',
userName: 'Andrew',
});If the user is not logged in
SeekHeaderFooter.updateProps({
authenticationStatus: 'unauthenticated',
});