The text below is selected, press Ctrl+C to copy to your clipboard. (⌘+C on Mac) No line numbers will be copied.
Guest
Asdasd
By Guest on 22nd January 2018 09:49:29 AM | Syntax: JAVASCRIPT | Views: 70



New paste | Download | Show/Hide line no. | Copy text to clipboard
  1. renderActionsList() {
  2.     let list = [
  3.       { key: 'assignCourier', comp: <SendOrderAction/> },
  4.       { key: 'routes', comp: <RoutesAction/> },
  5.       { key: 'showAllRoutesOnMap', comp: <ShowAllRoutesOnMap/> },
  6.       { key: 'showAllNavigationsOnMap', comp: <ShowAllNavigationsOnMap/> }
  7.     ];
  8.  
  9.     let anotherClass = " appListControlBtns";
  10.  
  11.     return list.map((item, index) => {
  12.       if (!API.isUserPermitted(Meteor.userId(), 'applications', item.key).hasAccess)
  13.         return (<div key={ index }></div>);
  14.       return (
  15.         <div key={ index } className={ item.key + anotherClass}>
  16.            { item.comp }
  17.         </div>
  18.       );
  19.     });
  20.   }



  • Recent Pastes
  • Teste
    8 hours 41 mins 34 secs ago
  • Tataa
    8 hours 50 mins 22 secs ago
  • Teste
    8 hours 52 mins 6 secs ago
  • Testea
    8 hours 52 mins 54 secs ago
  • Test
    21 hours 44 mins 30 secs ago