diff options
author | fragosti <francesco.agosti93@gmail.com> | 2018-11-02 07:41:08 +0800 |
---|---|---|
committer | fragosti <francesco.agosti93@gmail.com> | 2018-11-02 07:41:08 +0800 |
commit | 180f176716b57d43e2988b5db3a2423c7974177e (patch) | |
tree | d8a28e35b510403fd30793479c4f420e63a24fe7 /packages/instant/src/style | |
parent | ad96e953ceabd9e752eb9749f12090dd9ae17b9d (diff) | |
download | dexon-sol-tools-180f176716b57d43e2988b5db3a2423c7974177e.tar.gz dexon-sol-tools-180f176716b57d43e2988b5db3a2423c7974177e.tar.zst dexon-sol-tools-180f176716b57d43e2988b5db3a2423c7974177e.zip |
feat: use withTheme to use ColorOption to color Icon
Diffstat (limited to 'packages/instant/src/style')
-rw-r--r-- | packages/instant/src/style/theme.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/instant/src/style/theme.ts b/packages/instant/src/style/theme.ts index e81694620..8a5d56927 100644 --- a/packages/instant/src/style/theme.ts +++ b/packages/instant/src/style/theme.ts @@ -1,6 +1,6 @@ import * as styledComponents from 'styled-components'; -const { default: styled, css, keyframes, ThemeProvider } = styledComponents; +const { default: styled, css, keyframes, withTheme, ThemeProvider } = styledComponents; export type Theme = { [key in ColorOption]: string }; @@ -31,4 +31,4 @@ export const theme: Theme = { export const transparentWhite = 'rgba(255,255,255,0.3)'; export const overlayBlack = 'rgba(0, 0, 0, 0.6)'; -export { styled, css, keyframes, ThemeProvider }; +export { styled, css, keyframes, withTheme, ThemeProvider }; |