diff options
author | Brandon Millman <brandon.millman@gmail.com> | 2018-06-09 02:29:56 +0800 |
---|---|---|
committer | Brandon Millman <brandon.millman@gmail.com> | 2018-06-13 01:41:08 +0800 |
commit | 0c2f002a7d854026f1710ab92255f73e17597e2d (patch) | |
tree | 25b83d28b5330909020f1063ff9a7b4854956825 /packages/website | |
parent | 3d76d83a39ca61641f3efd7ed5cc6f7a214835ca (diff) | |
download | dexon-0x-contracts-0c2f002a7d854026f1710ab92255f73e17597e2d.tar.gz dexon-0x-contracts-0c2f002a7d854026f1710ab92255f73e17597e2d.tar.zst dexon-0x-contracts-0c2f002a7d854026f1710ab92255f73e17597e2d.zip |
Add scroll to top for jobs page
Diffstat (limited to 'packages/website')
-rw-r--r-- | packages/website/ts/pages/jobs/jobs.tsx | 49 |
1 files changed, 28 insertions, 21 deletions
diff --git a/packages/website/ts/pages/jobs/jobs.tsx b/packages/website/ts/pages/jobs/jobs.tsx index e49b40a2f..c7c667da1 100644 --- a/packages/website/ts/pages/jobs/jobs.tsx +++ b/packages/website/ts/pages/jobs/jobs.tsx @@ -21,24 +21,31 @@ export interface JobsProps { dispatcher: Dispatcher; } -export const Jobs: React.StatelessComponent<JobsProps> = props => { - return ( - <div> - <DocumentTitle title="Jobs" /> - <TopBar - blockchainIsLoaded={false} - location={props.location} - style={{ backgroundColor: colors.white, position: 'relative' }} - translate={props.translate} - /> - <Join0x /> - <Mission /> - <PhotoRail /> - <Values /> - <Benefits /> - <Teams /> - <OpenPositions /> - <Footer translate={props.translate} dispatcher={props.dispatcher} /> - </div> - ); -}; +export interface JobsState {} + +export class Jobs extends React.Component<JobsProps, JobsState> { + public componentDidMount(): void { + window.scrollTo(0, 0); + } + public render(): React.ReactNode { + return ( + <div> + <DocumentTitle title="Jobs" /> + <TopBar + blockchainIsLoaded={false} + location={this.props.location} + style={{ backgroundColor: colors.white, position: 'relative' }} + translate={this.props.translate} + /> + <Join0x /> + <Mission /> + <PhotoRail /> + <Values /> + <Benefits /> + <Teams /> + <OpenPositions /> + <Footer translate={this.props.translate} dispatcher={this.props.dispatcher} /> + </div> + ); + } +} |