You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 7-8.RSVP
Socket
Socket
Sign inDemoInstall

@lendi/navbar

Package Overview
Dependencies
Maintainers
0
Versions
430
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lendi/navbar

Lendi website Navbar component.


Version published
Weekly downloads
512
increased by664.18%
Maintainers
0
Created
Weekly downloads
 

Readme

Source

@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.

FAQs

Package last updated on 29 Jul 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc