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



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
  • Gfhghf
    1 day 12 hours 11 mins 56 secs ago
  • Sex Da Mojna
    1 day 15 hours 8 mins 43 secs ago
  • GTA 6
    2 days 9 hours 18 mins 51 secs ago
  • Asd
    2 days 19 hours 13 mins 52 secs ago
  • FFFFF
    5 days 7 hours 14 mins 47 secs ago