From 0c2f002a7d854026f1710ab92255f73e17597e2d Mon Sep 17 00:00:00 2001 From: Brandon Millman Date: Fri, 8 Jun 2018 11:29:56 -0700 Subject: Add scroll to top for jobs page --- packages/website/ts/pages/jobs/jobs.tsx | 49 +++++++++++++++++++-------------- 1 file 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 = props => { - return ( -
- - - - - - - - - -
-
- ); -}; +export interface JobsState {} + +export class Jobs extends React.Component { + public componentDidMount(): void { + window.scrollTo(0, 0); + } + public render(): React.ReactNode { + return ( +
+ + + + + + + + + +
+ ); + } +} -- cgit