How to use the reactstrap.Navbar.propTypes function in reactstrap

To help you get started, we’ve selected a few reactstrap examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github go-faast / faast-web / src / app / components / Affiliate / Navbar / index.jsx View on Github external
const AffiliateNavBar = ({ logout, loggedIn, children, isExpanded, toggleExpanded, ...props }) => (
  
    
      
        
        Faa.st Affiliates
      
      {loggedIn && (
        
          
          
            <nav>
              
                
                  <span>Dashboard</span>
                
              
              </nav>
github go-faast / faast-web / src / app / components / AppNavbar.jsx View on Github external
<i>
              Add wallet
            </i><i>
          </i><i>
          
        
      
    
    {children}
  
)

AppNavbar.propTypes = {
  ...Navbar.propTypes
}

AppNavbar.defaultProps = {
  color: 'ultra-dark',
  dark: true,
  fixed: 'top',
  expand: config.navbar.expand,
}

export default compose(
  setDisplayName('AppNavBar'),
  withRouter,
  connect(createStructuredSelector({
    disablePortfolioLinks: isDefaultPortfolioEmpty,
    previousSwapInputs: getSavedSwapWidgetInputs
  }), {</i>
github go-faast / faast-web / src / app / components / Affiliate / Navbar / index.jsx View on Github external
<div>
            <p>
              Logout
            </p>
          </div>
        
      )}
    
    {children}
  
)

AffiliateNavBar.propTypes = {
  ...Navbar.propTypes
}

AffiliateNavBar.defaultProps = {
  color: 'light',
  dark: false,
  fixed: 'top',
  expand: config.navbar.expand,
}

export default compose(
  setDisplayName('AffiliateNavBar'),
  connect(createStructuredSelector({
    loggedIn: isAffiliateLoggedIn,
  }), {
    logout: affiliateLogout
  }),
github go-faast / faast-web / src / site / components / Header / index.jsx View on Github external
import GAEventButton from 'Components/GAEventButton'

import PropTypes from 'prop-types'
import classNames from 'class-names'

import { betaTag } from './style.scss'

import LanguageSelector from 'Components/LanguageSelector'

export default compose(
  setDisplayName('Header'),
  withRouter,
  setPropTypes({
    theme: PropTypes.string,
    headerColor: PropTypes.string,
    ...Navbar.propTypes
  }),
  connect(createStructuredSelector({
    currentLanguage: getAppLanguage
  }), {
    languageLoad,
    selectLanguage,
    correctStaticURL,
  }),
  lifecycle({
    componentDidMount() {
      const { history, languageLoad, correctStaticURL, currentLanguage } = this.props
      languageLoad()
      const url = correctStaticURL(currentLanguage)
      if (url) history.replace(`${url}`)
    },
  }),
github go-faast / faast-web / src / site / components / Header / index.jsx View on Github external
)(({ theme, handleSelectLanguage, headerColor, toggleExpanded, isExpanded, translations: { static: { header = {} } = {}  }, ...props }) =&gt; (
  
    
      
        <img style="{{" src="{FaastLogo64x64}">{siteConfig.name}
      
      
      
        <nav>
          
            
              {header.swap}</nav>
github go-faast / faast-web / src / app / components / AppNavbar.jsx View on Github external
const AppNavbar = ({ disablePortfolioLinks, children, isExpanded, handleSelectLanguage,
  toggleExpanded, isDropdownOpen, toggleDropdownOpen, queryString, ...props }) =&gt; (
  
    
      
        Faa.st
      
      
      
        <nav>
          {!disablePortfolioLinks &amp;&amp; (
            
              
                <i>
                Dashboard
              </i><i>
            </i><i>
          )}
          </i></nav>