Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
@richarepo/ui_components
Advanced tools
Eargo UI Components
npm install
npm link
To use in the project
npm install eargo-components
npm link eargo_components
import { NavBar } from 'eargo-components'
To unlink package
npm unlink eargo_components
npm install eargo-components
import { NavBar } from 'eargo-components'
<NavBar history={history} />
Pass react-router-dom's history instance, this is required for menu navigation
Pass promoBanner if you want to apply promobanner in your header
Example:-
const addressUrl = window.origin
const menuArray = [
{
title: 'Our Solutions',
url: `${addressUrl}`,
parentClass: 'li_solution',
childClass: 'nav_solution',
subMenuList: [
{
title: 'Hearing Aids',
suburl: `${addressUrl}products-hearing-aids`,
},
{
title: 'Eargo App',
suburl: `${addressUrl}our-solutions/eargo-app`,
},
]
},
{
title: 'Eargo Difference',
url: `${addressUrl}`,
parentClass: 'li_difference',
childClass: 'nav_difference',
subMenuList: [
{
title: 'How It Works',
suburl: `${addressUrl}eargo-difference`,
},
{
title: 'Compare Us',
suburl: `${addressUrl}hearing-aid-comparison`,
},
{
title: 'Reviews',
suburl: `${addressUrl}reviews`,
},
]
},
{
title: 'Shop',
url: '/',
parentClass: 'li_store',
childClass: 'nav_store',
subMenuList: [
{
address: '/eargo-neo-hifi',
optionImage: 'IMAGE_URL',
titleImage: true,
optionTitle: 'https://eargo-images-prod.s3-us-west-1.amazonaws.com/Rebrand2019/EargoNEOHiFi_300x81-02.svg'
},
{
address: '/eargo-neo',
optionImage: 'IMAGE_URL',
titleImage: true,
optionTitle: 'https://eargo-images-prod.s3-us-west-1.amazonaws.com/Rebrand2019/neo.svg'
},
{
address: '/eargo-max',
optionImage: 'IMAGE_URL',
titleImage: true,
optionTitle: 'https://eargo-images-prod.s3-us-west-1.amazonaws.com/Rebrand2019/max.svg'
},
{
address: '/accessories',
optionImage: 'IMAGE_URL',
titleImage: false,
optionTitle: 'ACCESSORIES'
}
]
},
{
title: 'Support',
url: `${addressUrl}showme`,
parentClass: 'li_support',
childClass: 'nav_support'
},
{
title: 'Hearing Health',
url: `${addressUrl}`,
parentClass: 'li_health',
childClass: 'nav_health',
subMenuList: [
{
title: 'Hearing Check',
suburl: `${addressUrl}hearing-health/hearing-check`,
},
{
title: 'Hearing Loss Causes',
suburl: `${addressUrl}hearing-health/causes-of-hearing-loss`,
},
{
title: 'Signs of Hearing Loss',
suburl: `${addressUrl}hearing-health/signs-of-hearing-loss`,
},
{
title: 'Treating Hearing Loss',
suburl: `${addressUrl}hearing-health/treatment-of-hearing-loss`,
},
{
title: 'Hearing Loss FAQ',
suburl: `${addressUrl}hearing-health/faq`,
},
]
},
{
title: 'Insider Blog',
url: `${addressUrl}blog`,
parentClass: 'li_blog',
childClass: 'nav_blog'
},
];
menuArray is the set of menus, that you want to show in header. If you want to pass your menu array then create something like this.
Pass cartCount value if you want to show total of products in the cart
This object will hold the value of selected variant that will be reflected in floating cart
Function that will update the state of cart
isCartOpen will contain the value for current state of cartStates
handleReviews function will scroll the page where productReviews started
See the License file.
FAQs
Eargo UI Components
The npm package @richarepo/ui_components receives a total of 1 weekly downloads. As such, @richarepo/ui_components popularity was classified as not popular.
We found that @richarepo/ui_components demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.