diff options
author | Brandon Millman <brandon.millman@gmail.com> | 2018-06-09 04:27:41 +0800 |
---|---|---|
committer | Brandon Millman <brandon.millman@gmail.com> | 2018-06-13 01:41:08 +0800 |
commit | 474b93a22f9545fe9bcabe5a80e6a057e66ab286 (patch) | |
tree | b14ecd5cb872a348eac939fac1e58a4c5ed1889f /packages/website/ts/pages/jobs/jobs.tsx | |
parent | 0c2f002a7d854026f1710ab92255f73e17597e2d (diff) | |
download | dexon-0x-contracts-474b93a22f9545fe9bcabe5a80e6a057e66ab286.tar.gz dexon-0x-contracts-474b93a22f9545fe9bcabe5a80e6a057e66ab286.tar.zst dexon-0x-contracts-474b93a22f9545fe9bcabe5a80e6a057e66ab286.zip |
Add link to open positions section
Diffstat (limited to 'packages/website/ts/pages/jobs/jobs.tsx')
-rw-r--r-- | packages/website/ts/pages/jobs/jobs.tsx | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/packages/website/ts/pages/jobs/jobs.tsx b/packages/website/ts/pages/jobs/jobs.tsx index c7c667da1..466926af0 100644 --- a/packages/website/ts/pages/jobs/jobs.tsx +++ b/packages/website/ts/pages/jobs/jobs.tsx @@ -1,4 +1,4 @@ -import { colors } from '@0xproject/react-shared'; +import { colors, utils as sharedUtils } from '@0xproject/react-shared'; import * as React from 'react'; import * as DocumentTitle from 'react-document-title'; @@ -23,6 +23,8 @@ export interface JobsProps { export interface JobsState {} +const OPEN_POSITIONS_HASH = 'positions'; + export class Jobs extends React.Component<JobsProps, JobsState> { public componentDidMount(): void { window.scrollTo(0, 0); @@ -37,15 +39,18 @@ export class Jobs extends React.Component<JobsProps, JobsState> { style={{ backgroundColor: colors.white, position: 'relative' }} translate={this.props.translate} /> - <Join0x /> + <Join0x onCallToActionClick={this._onJoin0xCallToActionClick.bind(this)} /> <Mission /> <PhotoRail /> <Values /> <Benefits /> <Teams /> - <OpenPositions /> + <OpenPositions hash={OPEN_POSITIONS_HASH} /> <Footer translate={this.props.translate} dispatcher={this.props.dispatcher} /> </div> ); } + private _onJoin0xCallToActionClick(): void { + sharedUtils.setUrlHash(OPEN_POSITIONS_HASH); + } } |