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: 21



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
  • Test 2
    1 day 12 hours 34 mins 14 secs ago
  • Test
    1 day 13 hours 26 mins 52 secs ago
  • Hi
    3 days 17 hours 15 mins 42 secs ago
  • Pruebaaa
    5 days 17 hours 25 mins 2 secs ago
  • Test
    1 week 2 days 16 hours 9 mins and 14 secs ago