IF YOU WOULD LIKE TO GET AN ACCOUNT, please write an email to s dot adaszewski at gmail dot com. User accounts are meant only to report issues and/or generate pull requests. This is a purpose-specific Git hosting for ADARED projects. Thank you for your understanding!
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

25 lignes
701B

  1. import { h, Component } from 'preact';
  2. import WBNavbar from 'wb-navbar';
  3. import WBInlineSearch from 'wb-inline-search';
  4. class WBNavbarCommon extends Component {
  5. render({ app, items, activeItem }) {
  6. return (
  7. <WBNavbar items={ [
  8. { 'name': 'Home', 'id': 'home' },
  9. { 'name': 'All Projects', 'id': 'all-projects' },
  10. { 'name': 'User', 'dropdown': [ { 'id': 'sign-out', 'name': 'Sign Out' } ]}
  11. ].concat(items) } rhs={ (
  12. <WBInlineSearch />
  13. ) } onItemClicked={ item => app.navbarItemClicked(item) }
  14. activeItem={ activeItem } />
  15. );
  16. }
  17. }
  18. WBNavbarCommon.defaultProps = {
  19. 'items': []
  20. };
  21. export default WBNavbarCommon;