react-icons/hi#HiLightBulb JavaScript Examples

The following examples show how to use react-icons/hi#HiLightBulb. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: Footer.js    From hackertab.dev with Apache License 2.0 5 votes vote down vote up
function Footer({ feedbackWidget }) {
  const { show: showFeedbackWidget } = feedbackWidget || { show: false }

  const onSourceCodeClick = () => {
    trackPageView('source code')
    window.open(APP.repository, '_blank')
  }

  const onNewFeatureRequest = () => {
    trackPageView('feature request')
    window.open(APP.supportLink)
  }

  const onPrivacyPolicyClick = () => {
    trackPageView('privacy policy')
    window.open(APP.privacyPolicyLink)
  }
  const onTermsClick = () => {
    trackPageView('terms and conditions')
    window.open(APP.termsAndConditionsLink)
  }
  const onDataSourcesClick = () => {
    trackPageView('data sources')
    window.open(APP.dataSourcesLink)
  }

  return (
    <footer className="AppFooter">
      {showFeedbackWidget && (
        <a className="linkItem" href="#" onClick={(e) => onNewFeatureRequest(e)}>
          <HiLightBulb className="linkItemIcon" /> New Feature?
        </a>
      )}
      <a className="linkItem" href="#" onClick={() => onSourceCodeClick()}>
        <RiCodeSSlashFill className="linkItemIcon" /> Source code
      </a>
      <a className="linkItem" href="#" onClick={() => onTermsClick()}>{`Terms & conditions`}</a>
      <a className="linkItem" href="#" onClick={() => onPrivacyPolicyClick()}>
        Privacy policy
      </a>
      <a className="linkItem" href="#" onClick={() => onDataSourcesClick()}>
        Data sources
      </a>
    </footer>
  )
}