diff options
author | Brandon Millman <brandon.millman@gmail.com> | 2018-06-13 06:54:27 +0800 |
---|---|---|
committer | Brandon Millman <brandon.millman@gmail.com> | 2018-06-13 06:54:27 +0800 |
commit | 2794d64d3e920cd30ed0603becffc74b17c22218 (patch) | |
tree | 69800b025011f3c7ba99fe9ff35d8cc24ba15b7a /packages/website | |
parent | 9d9341901f2b5b14e3a29a6bdc18a505d9b361aa (diff) | |
download | dexon-sol-tools-2794d64d3e920cd30ed0603becffc74b17c22218.tar dexon-sol-tools-2794d64d3e920cd30ed0603becffc74b17c22218.tar.gz dexon-sol-tools-2794d64d3e920cd30ed0603becffc74b17c22218.tar.bz2 dexon-sol-tools-2794d64d3e920cd30ed0603becffc74b17c22218.tar.lz dexon-sol-tools-2794d64d3e920cd30ed0603becffc74b17c22218.tar.xz dexon-sol-tools-2794d64d3e920cd30ed0603becffc74b17c22218.tar.zst dexon-sol-tools-2794d64d3e920cd30ed0603becffc74b17c22218.zip |
Use Text in OpenPositions
Diffstat (limited to 'packages/website')
-rw-r--r-- | packages/website/ts/components/ui/text.tsx | 2 | ||||
-rw-r--r-- | packages/website/ts/pages/jobs/open_positions.tsx | 9 | ||||
-rw-r--r-- | packages/website/ts/utils/configs.ts | 2 |
3 files changed, 8 insertions, 5 deletions
diff --git a/packages/website/ts/components/ui/text.tsx b/packages/website/ts/components/ui/text.tsx index 2b80869d1..0fa79bc7c 100644 --- a/packages/website/ts/components/ui/text.tsx +++ b/packages/website/ts/components/ui/text.tsx @@ -13,7 +13,7 @@ export interface TextProps { lineHeight?: string; minHeight?: string; center?: boolean; - fontWeight?: number; + fontWeight?: number | string; } const PlainText: React.StatelessComponent<TextProps> = ({ children, className, Tag }) => ( diff --git a/packages/website/ts/pages/jobs/open_positions.tsx b/packages/website/ts/pages/jobs/open_positions.tsx index c43cc43fe..79b51c0d1 100644 --- a/packages/website/ts/pages/jobs/open_positions.tsx +++ b/packages/website/ts/pages/jobs/open_positions.tsx @@ -4,6 +4,7 @@ import { Table, TableBody, TableHeader, TableHeaderColumn, TableRow, TableRowCol import * as React from 'react'; import { Retry } from 'ts/components/ui/retry'; +import { Text } from 'ts/components/ui/text'; import { HeaderItem } from 'ts/pages/jobs/list/header_item'; import { ListItem } from 'ts/pages/jobs/list/list_item'; import { colors } from 'ts/style/colors'; @@ -171,10 +172,12 @@ export interface JobInfoListItemProps { const PlainJobInfoListItem: React.StatelessComponent<JobInfoListItemProps> = ({ title, description, onClick }) => ( <div className="mb3" onClick={onClick}> <ListItem> - <div style={{ fontWeight: 'bold', fontSize: 16, color: colors.mediumBlue }}>{title + ' ›'}</div> - <div className="pt1" style={{ fontSize: 16, color: colors.darkGrey }}> + <Text fontWeight="bold" fontSize="16px" fontColor={colors.mediumBlue}> + {title + ' ›'} + </Text> + <Text className="pt1" fontSize="16px" fontColor={colors.darkGrey}> {description} - </div> + </Text> </ListItem> </div> ); diff --git a/packages/website/ts/utils/configs.ts b/packages/website/ts/utils/configs.ts index ace8a5ba0..2fdc7f031 100644 --- a/packages/website/ts/utils/configs.ts +++ b/packages/website/ts/utils/configs.ts @@ -10,7 +10,7 @@ const INFURA_API_KEY = 'T5WSC8cautR4KXyYgsRs'; export const configs = { AMOUNT_DISPLAY_PRECSION: 5, - BACKEND_BASE_PROD_URL: 'https://website-api.0xproject.com', + BACKEND_BASE_PROD_URL: 'http://localhost:3000', BACKEND_BASE_STAGING_URL: 'http://ec2-52-91-181-85.compute-1.amazonaws.com', BASE_URL, BITLY_ACCESS_TOKEN: 'ffc4c1a31e5143848fb7c523b39f91b9b213d208', |