aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFred Carlsen <fred@sjelfull.no>2018-11-28 22:17:51 +0800
committerFred Carlsen <fred@sjelfull.no>2018-11-28 22:19:00 +0800
commitd642082058c17859170b933370bce9ea6b5da869 (patch)
treed2fc364471aa3fc7d2550d4bcb285fb247a397b6
parentd3aebd0b799607ba24f0a3a298afe85ced69c264 (diff)
downloaddexon-sol-tools-d642082058c17859170b933370bce9ea6b5da869.tar
dexon-sol-tools-d642082058c17859170b933370bce9ea6b5da869.tar.gz
dexon-sol-tools-d642082058c17859170b933370bce9ea6b5da869.tar.bz2
dexon-sol-tools-d642082058c17859170b933370bce9ea6b5da869.tar.lz
dexon-sol-tools-d642082058c17859170b933370bce9ea6b5da869.tar.xz
dexon-sol-tools-d642082058c17859170b933370bce9ea6b5da869.tar.zst
dexon-sol-tools-d642082058c17859170b933370bce9ea6b5da869.zip
Add styled-component types
-rw-r--r--packages/website/package.json1
-rw-r--r--packages/website/ts/style/theme.ts4
-rw-r--r--yarn.lock9
3 files changed, 12 insertions, 2 deletions
diff --git a/packages/website/package.json b/packages/website/package.json
index 6511ffb1a..75e147168 100644
--- a/packages/website/package.json
+++ b/packages/website/package.json
@@ -30,6 +30,7 @@
"@0x/typescript-typings": "^3.0.4",
"@0x/utils": "^2.0.6",
"@0x/web3-wrapper": "^3.1.5",
+ "@types/styled-components": "^4.1.1",
"accounting": "^0.4.1",
"basscss": "^8.0.3",
"blockies": "^0.0.2",
diff --git a/packages/website/ts/style/theme.ts b/packages/website/ts/style/theme.ts
index ce7d6975d..94bd0169a 100644
--- a/packages/website/ts/style/theme.ts
+++ b/packages/website/ts/style/theme.ts
@@ -4,7 +4,7 @@ import * as styledComponents from 'styled-components';
const {
default: styled,
css,
- injectGlobal,
+ createGlobalStyle,
keyframes,
ThemeProvider,
} = styledComponents as styledComponents.ThemedStyledComponentsModule<IThemeInterface>;
@@ -14,4 +14,4 @@ export interface IThemeInterface {}
export const theme = {};
-export { styled, css, injectGlobal, keyframes, ThemeProvider };
+export { styled, css, createGlobalStyle, keyframes, ThemeProvider };
diff --git a/yarn.lock b/yarn.lock
index 588d9bfea..3b6477f6e 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -1629,6 +1629,15 @@
"@types/node" "*"
"@types/react" "*"
+"@types/styled-components@^4.1.1":
+ version "4.1.1"
+ resolved "https://registry.yarnpkg.com/@types/styled-components/-/styled-components-4.1.1.tgz#1a9f8ebff7ee5cbc9ddc08b486e55e5a152bb408"
+ integrity sha512-ye+XXSkaqs7BgCiQx4NQRIUnqo8LDrkRazE9qvBTG//rdAaHH77xshKE3OcWwVuLq283xH2wUW8C8z3eh1l+Wg==
+ dependencies:
+ "@types/node" "*"
+ "@types/react" "*"
+ csstype "^2.2.0"
+
"@types/tmp@^0.0.33":
version "0.0.33"
resolved "https://registry.yarnpkg.com/@types/tmp/-/tmp-0.0.33.tgz#1073c4bc824754ae3d10cfab88ab0237ba964e4d"