diff options
author | Brandon Millman <brandon.millman@gmail.com> | 2018-07-19 04:59:22 +0800 |
---|---|---|
committer | Brandon Millman <brandon.millman@gmail.com> | 2018-07-19 04:59:50 +0800 |
commit | 2c8fb9aa31bc9f07f7057e1c2cbe8dcffc74dc1e (patch) | |
tree | 614e9c40f697b40dd7a718e45e0160427720a21b /packages/website/ts/pages | |
parent | f48c6b6285dc3f5e9b819e7053ca209316a317dc (diff) | |
download | dexon-sol-tools-2c8fb9aa31bc9f07f7057e1c2cbe8dcffc74dc1e.tar dexon-sol-tools-2c8fb9aa31bc9f07f7057e1c2cbe8dcffc74dc1e.tar.gz dexon-sol-tools-2c8fb9aa31bc9f07f7057e1c2cbe8dcffc74dc1e.tar.bz2 dexon-sol-tools-2c8fb9aa31bc9f07f7057e1c2cbe8dcffc74dc1e.tar.lz dexon-sol-tools-2c8fb9aa31bc9f07f7057e1c2cbe8dcffc74dc1e.tar.xz dexon-sol-tools-2c8fb9aa31bc9f07f7057e1c2cbe8dcffc74dc1e.tar.zst dexon-sol-tools-2c8fb9aa31bc9f07f7057e1c2cbe8dcffc74dc1e.zip |
Fix key errors and typo
Diffstat (limited to 'packages/website/ts/pages')
-rw-r--r-- | packages/website/ts/pages/jobs/benefits.tsx | 6 | ||||
-rw-r--r-- | packages/website/ts/pages/jobs/open_positions.tsx | 3 |
2 files changed, 4 insertions, 5 deletions
diff --git a/packages/website/ts/pages/jobs/benefits.tsx b/packages/website/ts/pages/jobs/benefits.tsx index c5c636c23..bc4edf973 100644 --- a/packages/website/ts/pages/jobs/benefits.tsx +++ b/packages/website/ts/pages/jobs/benefits.tsx @@ -5,7 +5,7 @@ import { Circle } from 'ts/components/ui/circle'; import { Container } from 'ts/components/ui/container'; import { FilledImage } from 'ts/components/ui/filled_image'; import { Image } from 'ts/components/ui/image'; -import { Text } from 'ts/components/ui/Text'; +import { Text } from 'ts/components/ui/text'; import { colors } from 'ts/style/colors'; import { ScreenWidths } from 'ts/types'; import { constants } from 'ts/utils/constants'; @@ -79,7 +79,7 @@ const BenefitsList = () => { return ( <Container maxWidth="360px"> <Header>Benefits</Header> - {_.map(BENEFITS, benefit => <BenefitItem description={benefit} />)} + {_.map(BENEFITS, benefit => <BenefitItem key={benefit} description={benefit} />)} </Container> ); }; @@ -107,7 +107,7 @@ const ValuesList = () => { return ( <Container maxWidth="360px"> <Header>Our Values</Header> - {_.map(VALUES, value => <ValueItem {...value} />)} + {_.map(VALUES, value => <ValueItem key={value.text} {...value} />)} <Text fontSize="14px" lineHeight="26px"> We care deeply about our mission and encourage you to{' '} <a diff --git a/packages/website/ts/pages/jobs/open_positions.tsx b/packages/website/ts/pages/jobs/open_positions.tsx index f62922d1c..408e4b720 100644 --- a/packages/website/ts/pages/jobs/open_positions.tsx +++ b/packages/website/ts/pages/jobs/open_positions.tsx @@ -106,10 +106,9 @@ export class OpenPositions extends React.Component<OpenPositionsProps, OpenPosit }); } const jobInfos = await backendClient.getJobInfosAsync(); - const dummyJobInfos = _.concat(jobInfos, jobInfos, jobInfos, jobInfos); if (!this._isUnmounted) { this.setState({ - jobInfos: dummyJobInfos, + jobInfos, }); } } catch (error) { |