diff options
author | August Skare <post@augustskare.no> | 2018-11-20 22:28:18 +0800 |
---|---|---|
committer | August Skare <post@augustskare.no> | 2018-11-20 22:28:18 +0800 |
commit | 6919409c2b642937686ef8a77e21ad9f321a2be8 (patch) | |
tree | 041c77bacb31188c31e3240e8d4bcb10244c1a6c /packages | |
parent | f360b2edd671f7f666b3d218c1400b2fb7c75610 (diff) | |
download | dexon-sol-tools-6919409c2b642937686ef8a77e21ad9f321a2be8.tar dexon-sol-tools-6919409c2b642937686ef8a77e21ad9f321a2be8.tar.gz dexon-sol-tools-6919409c2b642937686ef8a77e21ad9f321a2be8.tar.bz2 dexon-sol-tools-6919409c2b642937686ef8a77e21ad9f321a2be8.tar.lz dexon-sol-tools-6919409c2b642937686ef8a77e21ad9f321a2be8.tar.xz dexon-sol-tools-6919409c2b642937686ef8a77e21ad9f321a2be8.tar.zst dexon-sol-tools-6919409c2b642937686ef8a77e21ad9f321a2be8.zip |
typedef for context data
Diffstat (limited to 'packages')
-rw-r--r-- | packages/dev-tools-pages/ts/context/compiler.tsx | 4 | ||||
-rw-r--r-- | packages/dev-tools-pages/ts/context/cov.tsx | 4 | ||||
-rw-r--r-- | packages/dev-tools-pages/ts/context/index.tsx | 9 | ||||
-rw-r--r-- | packages/dev-tools-pages/ts/context/profiler.tsx | 4 | ||||
-rw-r--r-- | packages/dev-tools-pages/ts/context/trace.tsx | 4 |
5 files changed, 20 insertions, 5 deletions
diff --git a/packages/dev-tools-pages/ts/context/compiler.tsx b/packages/dev-tools-pages/ts/context/compiler.tsx index 88402e4f6..177e265e5 100644 --- a/packages/dev-tools-pages/ts/context/compiler.tsx +++ b/packages/dev-tools-pages/ts/context/compiler.tsx @@ -1,6 +1,8 @@ import Icon from 'ts/icons/logos/compiler.svg'; -export const context = { +import { ContextInterface } from './index'; + +export const context: ContextInterface = { title: 'sol-compiler', name: 'compiler', subtitle: 'Solidity compilation that just works', diff --git a/packages/dev-tools-pages/ts/context/cov.tsx b/packages/dev-tools-pages/ts/context/cov.tsx index eea3ccca6..1ade45e9d 100644 --- a/packages/dev-tools-pages/ts/context/cov.tsx +++ b/packages/dev-tools-pages/ts/context/cov.tsx @@ -1,6 +1,8 @@ import Icon from 'ts/icons/logos/cov.svg'; -export const context = { +import { ContextInterface } from './index'; + +export const context: ContextInterface = { title: 'sol-cov', name: 'cov', subtitle: 'Solidity code coverage', diff --git a/packages/dev-tools-pages/ts/context/index.tsx b/packages/dev-tools-pages/ts/context/index.tsx index 3aba2f34c..35c647ad6 100644 --- a/packages/dev-tools-pages/ts/context/index.tsx +++ b/packages/dev-tools-pages/ts/context/index.tsx @@ -6,7 +6,14 @@ interface ContextInterface { subtitle?: string; tagline?: string; icon?: React.ReactNode; - colors?: any; + colors?: { + main: string; + secondary: string; + secondary_alt: string; + type: string; + type_alt: string; + dark: string; + }; } const ThemeContext = createContext({}); diff --git a/packages/dev-tools-pages/ts/context/profiler.tsx b/packages/dev-tools-pages/ts/context/profiler.tsx index 507fa663d..5ccfa5b4c 100644 --- a/packages/dev-tools-pages/ts/context/profiler.tsx +++ b/packages/dev-tools-pages/ts/context/profiler.tsx @@ -1,6 +1,8 @@ import Icon from 'ts/icons/logos/profiler.svg'; -export const context = { +import { ContextInterface } from './index'; + +export const context: ContextInterface = { title: 'sol-profiler', name: 'profiler', subtitle: 'Gas profiling for Solidity', diff --git a/packages/dev-tools-pages/ts/context/trace.tsx b/packages/dev-tools-pages/ts/context/trace.tsx index fea72d4c2..9627cc0a4 100644 --- a/packages/dev-tools-pages/ts/context/trace.tsx +++ b/packages/dev-tools-pages/ts/context/trace.tsx @@ -1,6 +1,8 @@ import Icon from 'ts/icons/logos/trace.svg'; -export const context = { +import { ContextInterface } from './index'; + +export const context: ContextInterface = { title: 'sol-trace', name: 'trace', subtitle: 'Human-readable stack traces', |