aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrandon Millman <brandon.millman@gmail.com>2018-06-13 06:03:16 +0800
committerBrandon Millman <brandon.millman@gmail.com>2018-06-13 06:03:16 +0800
commit155e3d225d3255d6728e1c986de46416f5685e7f (patch)
treea0b6386c6af7c9de400430e85895cd55301b42f9
parentca41f100ab9187b32b61ef83f8affed5ae3670b8 (diff)
downloaddexon-sol-tools-155e3d225d3255d6728e1c986de46416f5685e7f.tar
dexon-sol-tools-155e3d225d3255d6728e1c986de46416f5685e7f.tar.gz
dexon-sol-tools-155e3d225d3255d6728e1c986de46416f5685e7f.tar.bz2
dexon-sol-tools-155e3d225d3255d6728e1c986de46416f5685e7f.tar.lz
dexon-sol-tools-155e3d225d3255d6728e1c986de46416f5685e7f.tar.xz
dexon-sol-tools-155e3d225d3255d6728e1c986de46416f5685e7f.tar.zst
dexon-sol-tools-155e3d225d3255d6728e1c986de46416f5685e7f.zip
Remove FloatingImage
-rw-r--r--packages/website/ts/pages/jobs/benefits.tsx3
-rw-r--r--packages/website/ts/pages/jobs/floating_image.tsx8
-rw-r--r--packages/website/ts/pages/jobs/jobs.tsx4
3 files changed, 3 insertions, 12 deletions
diff --git a/packages/website/ts/pages/jobs/benefits.tsx b/packages/website/ts/pages/jobs/benefits.tsx
index 4ec09b129..8a44eb596 100644
--- a/packages/website/ts/pages/jobs/benefits.tsx
+++ b/packages/website/ts/pages/jobs/benefits.tsx
@@ -2,7 +2,6 @@ import * as _ from 'lodash';
import * as React from 'react';
import { FilledImage } from 'ts/components/ui/filled_image';
-import { FloatingImage } from 'ts/pages/jobs/floating_image';
import { HeaderItem } from 'ts/pages/jobs/list/header_item';
import { ListItem } from 'ts/pages/jobs/list/list_item';
import { colors } from 'ts/style/colors';
@@ -67,7 +66,7 @@ const LargeLayout = () => (
const SmallLayout = () => (
<div>
- <FloatingImage src={_.head(IMAGE_PATHS)} />
+ <FilledImage src={_.head(IMAGE_PATHS)} />
<BenefitsList />
</div>
);
diff --git a/packages/website/ts/pages/jobs/floating_image.tsx b/packages/website/ts/pages/jobs/floating_image.tsx
deleted file mode 100644
index 4719a9596..000000000
--- a/packages/website/ts/pages/jobs/floating_image.tsx
+++ /dev/null
@@ -1,8 +0,0 @@
-import * as React from 'react';
-
-export interface FloatingImageProps {
- src: string;
-}
-export const FloatingImage = (props: FloatingImageProps) => {
- return <img src={props.src} style={{ width: '100%' }} />;
-};
diff --git a/packages/website/ts/pages/jobs/jobs.tsx b/packages/website/ts/pages/jobs/jobs.tsx
index c23b4a976..314669ee9 100644
--- a/packages/website/ts/pages/jobs/jobs.tsx
+++ b/packages/website/ts/pages/jobs/jobs.tsx
@@ -5,8 +5,8 @@ import * as DocumentTitle from 'react-document-title';
import { Footer } from 'ts/components/footer';
import { TopBar } from 'ts/components/top_bar/top_bar';
+import { FilledImage } from 'ts/components/ui/filled_image';
import { Benefits } from 'ts/pages/jobs/benefits';
-import { FloatingImage } from 'ts/pages/jobs/floating_image';
import { Join0x } from 'ts/pages/jobs/join_0x';
import { Mission } from 'ts/pages/jobs/mission';
import { OpenPositions } from 'ts/pages/jobs/open_positions';
@@ -55,7 +55,7 @@ export class Jobs extends React.Component<JobsProps, JobsState> {
<Join0x onCallToActionClick={this._onJoin0xCallToActionClick.bind(this)} />
<Mission screenWidth={this.props.screenWidth} />
{this._isSmallScreen() ? (
- <FloatingImage src={_.head(PHOTO_RAIL_IMAGES)} />
+ <FilledImage src={_.head(PHOTO_RAIL_IMAGES)} />
) : (
<PhotoRail images={PHOTO_RAIL_IMAGES} />
)}