aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/ts
diff options
context:
space:
mode:
authorBrandon Millman <brandon.millman@gmail.com>2018-06-09 02:29:56 +0800
committerBrandon Millman <brandon.millman@gmail.com>2018-06-13 01:41:08 +0800
commit0c2f002a7d854026f1710ab92255f73e17597e2d (patch)
tree25b83d28b5330909020f1063ff9a7b4854956825 /packages/website/ts
parent3d76d83a39ca61641f3efd7ed5cc6f7a214835ca (diff)
downloaddexon-sol-tools-0c2f002a7d854026f1710ab92255f73e17597e2d.tar
dexon-sol-tools-0c2f002a7d854026f1710ab92255f73e17597e2d.tar.gz
dexon-sol-tools-0c2f002a7d854026f1710ab92255f73e17597e2d.tar.bz2
dexon-sol-tools-0c2f002a7d854026f1710ab92255f73e17597e2d.tar.lz
dexon-sol-tools-0c2f002a7d854026f1710ab92255f73e17597e2d.tar.xz
dexon-sol-tools-0c2f002a7d854026f1710ab92255f73e17597e2d.tar.zst
dexon-sol-tools-0c2f002a7d854026f1710ab92255f73e17597e2d.zip
Add scroll to top for jobs page
Diffstat (limited to 'packages/website/ts')
-rw-r--r--packages/website/ts/pages/jobs/jobs.tsx49
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>
+ );
+ }
+}