1.0.1 • Published 4 years ago

@seek/anz-candidate-header-footer-standalone v1.0.1

Weekly downloads
16
License
UNLICENSED
Repository
github
Last release
4 years ago

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.html
  • header_nz.html
  • header_au_career-advice.html
  • header_nz_career-advice.html
  • footer_au.html
  • footer_nz.html

Load the JS and CSS

  • seek-candidate-header-footer.js
  • seek-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',
});