diff options
author | August Skare <post@augustskare.no> | 2018-11-20 22:15:17 +0800 |
---|---|---|
committer | August Skare <post@augustskare.no> | 2018-11-20 22:15:17 +0800 |
commit | b0c22a222e09ef8008a1ef7cf79e28b73961560a (patch) | |
tree | fb98563e385620607b962f1ef0726676fd2c29dd /packages/dev-tools-pages/ts/components/compiler.tsx | |
parent | ea1805058924e12a18bcc4f9de712bfade64c595 (diff) | |
download | dexon-sol-tools-b0c22a222e09ef8008a1ef7cf79e28b73961560a.tar dexon-sol-tools-b0c22a222e09ef8008a1ef7cf79e28b73961560a.tar.gz dexon-sol-tools-b0c22a222e09ef8008a1ef7cf79e28b73961560a.tar.bz2 dexon-sol-tools-b0c22a222e09ef8008a1ef7cf79e28b73961560a.tar.lz dexon-sol-tools-b0c22a222e09ef8008a1ef7cf79e28b73961560a.tar.xz dexon-sol-tools-b0c22a222e09ef8008a1ef7cf79e28b73961560a.tar.zst dexon-sol-tools-b0c22a222e09ef8008a1ef7cf79e28b73961560a.zip |
use lodash.map insted of array.map
Diffstat (limited to 'packages/dev-tools-pages/ts/components/compiler.tsx')
-rw-r--r-- | packages/dev-tools-pages/ts/components/compiler.tsx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/dev-tools-pages/ts/components/compiler.tsx b/packages/dev-tools-pages/ts/components/compiler.tsx index c535795aa..d576e3b72 100644 --- a/packages/dev-tools-pages/ts/components/compiler.tsx +++ b/packages/dev-tools-pages/ts/components/compiler.tsx @@ -1,5 +1,6 @@ import * as React from 'react'; import styled from 'styled-components'; +import * as _ from 'lodash'; import { colors, media } from 'ts/variables'; @@ -75,7 +76,7 @@ const Compiler: React.StatelessComponent<{}> = () => ( <Container> <Breakout> <Cards> - {cards.map(card => ( + {_.map(cards, card => ( <Card key={card.title.split(' ').join('-')}> <Dt>{card.title}</Dt> <Dd>{card.body}</Dd> |