diff options
author | Megan Pearson <megan.e.pearson@gmail.com> | 2018-10-19 17:32:59 +0800 |
---|---|---|
committer | Megan Pearson <megan.e.pearson@gmail.com> | 2018-10-19 17:32:59 +0800 |
commit | 585ca203b02e902b3dd5141bcacd0ffc5740e0c1 (patch) | |
tree | 07ea6d5b072a4f71f78895be7329e57ce4f4cd50 /packages/dev-tools-pages/ts/components/Code.tsx | |
parent | 561f441a5bfc4822b0974169605d089b4f687bf5 (diff) | |
download | dexon-sol-tools-585ca203b02e902b3dd5141bcacd0ffc5740e0c1.tar dexon-sol-tools-585ca203b02e902b3dd5141bcacd0ffc5740e0c1.tar.gz dexon-sol-tools-585ca203b02e902b3dd5141bcacd0ffc5740e0c1.tar.bz2 dexon-sol-tools-585ca203b02e902b3dd5141bcacd0ffc5740e0c1.tar.lz dexon-sol-tools-585ca203b02e902b3dd5141bcacd0ffc5740e0c1.tar.xz dexon-sol-tools-585ca203b02e902b3dd5141bcacd0ffc5740e0c1.tar.zst dexon-sol-tools-585ca203b02e902b3dd5141bcacd0ffc5740e0c1.zip |
Changed name of export to colors and updates components
Diffstat (limited to 'packages/dev-tools-pages/ts/components/Code.tsx')
-rw-r--r-- | packages/dev-tools-pages/ts/components/Code.tsx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/dev-tools-pages/ts/components/Code.tsx b/packages/dev-tools-pages/ts/components/Code.tsx index 42893a70a..44d1cb99c 100644 --- a/packages/dev-tools-pages/ts/components/Code.tsx +++ b/packages/dev-tools-pages/ts/components/Code.tsx @@ -1,6 +1,6 @@ import * as React from 'react'; import styled from 'styled-components'; -import variables from '../variables'; +import { colors } from '../variables'; import BaseButton from './Button'; @@ -26,8 +26,8 @@ const Base = styled.div < CodeProps > ` - color: ${props => (props.language === undefined ? variables.colors.white : 'inherit')}; - background-color: ${props => (props.language === undefined ? variables.colors.black : variables.colors.lightGray)}; + color: ${props => (props.language === undefined ? colors.white : 'inherit')}; + background-color: ${props => (props.language === undefined ? colors.black : colors.lightGray)}; white-space: ${props => (props.language === undefined ? 'nowrap' : '')}; position: relative; &:hover ${Button} { |