@lendi/navbar
TypeScript icon, indicating that this package has built-in type declarations

7.40.3 • Public • Published

@lendi/navbar

Lendi website Navbar component.

Installation

yarn add @lendi/navbar
import { SimpleNavbar, MultiNavbar } from '@lendi/navbar';

export const SimpleNavbar = () => {
  return (
    <SimpleNavbar
      homeURL={homeURL} /** URL for logo */
      useTransparent={false} /** Transparent the background */
      showBookanAppointmentCta={true} /** flag to show Book an appoointment cta btn  */
      showTalkToExpertCta={true} /** flag to show TalktoExpert cta btn  */
      params={''} /** Query params to appear along with homeUrl */
      continueURL={'/'} /** Url for continue button */
      onLogout={() => {}} /** Handler for logout */
      showContinueAction={
        false
      } /** To add more flexibility to show continueButton. For example, in F1/F2, you don't need to show up continue button as you are in funnel, instead show BookAnAppoinment button. */
      hideDashboardItem={false} /** to hide/unhide the dashboard menu in kebab menu  **/
      hideManageApplicationsItem={false} /** to hide/unhide the manageApplication menu in kebab menu  **/
    />
  );
};

export const MultiNavbar = () => {
  return (
    <MultiNavbar
      homeURL={homeURL}
      useTransparent={false}
      showBookanAppointmentCta={true}
      showTalkToExpertCta={true}
      params={''}
      continueURL={'/'}
      onLogout={() => {}}
      showContinueAction={false}
      hideDashboardItem={false}
      hideManageApplicationsItem={false}
    />
  );
};

Usage

This component need to know environmentContext to describe apiBaseUrl so that it could make some API call specific to Lendi use case like getting broker information and get chat channel information.

This package passes the returnURL on clicking Sign-in button so that sign-in flow knows where to come back after authentication. The usage of @lendi/navbar on homepage will set dashboard url as returnURL on clicking the sign-in button(SUB-2409)

note

All comm-panel(or chat) related stories are best viewed in screen with 375px or mobile.

Readme

Keywords

none

Package Sidebar

Install

npm i @lendi/navbar

Weekly Downloads

115

Version

7.40.3

License

ISC

Unpacked Size

500 kB

Total Files

97

Last publish

Collaborators

  • joshua-derbe-lendi
  • michaelhuttonlendi
  • simon_lau_lendi
  • mona_catapia_lendi
  • augustodiaslendi
  • benjamintan
  • kishan.vyas
  • rachit.arora
  • leoskbabu
  • hm.qm
  • oliverfrance
  • joymun
  • kjartan.johansen
  • simon.vollett
  • michael-palmes-lendi
  • dapovey
  • beiwang-lendi
  • nooshines
  • willhargan_lendi
  • fernandogontijo_
  • sylvialuo
  • phill_eade
  • trung-lendi
  • nghiato
  • sunny.niu
  • pratyush-lendi
  • mfarshadmehr
  • ritapang
  • jessezha
  • vinualwislendi
  • jannes.mingram.lendi
  • bchiong
  • antoine_lendi
  • lendi-owner
  • bradley.martin.lendi
  • andy_sawyer
  • anuragsri
  • malkyfaith
  • brianduan
  • andrealin
  • yihan_lu_lendi
  • stan-lendi
  • amir.sarvestani
  • timsilva
  • illi4
  • samnevers
  • tues
  • boris.gordon
  • leo.wei
  • edkim_lendi
  • bharadwajsampath
  • nodemacross
  • ddiprose_lendi
  • john.zhang
  • luissilvalendi
  • lendi-luizglingani
  • nikste
  • thomaslendi
  • dimitrioslendi
  • le-kang-lendi
  • yupeili
  • rwinarto.lendi
  • andrewantony
  • harshdeepgarg_lendi
  • dirgh