From 4e6742ba9d071f088950943e675c58a11fd4fe90 Mon Sep 17 00:00:00 2001 From: jaredvu Date: Fri, 9 Feb 2024 20:35:39 -0800 Subject: [PATCH] nits: Add fadedWarning and fix globalStyle type --- src/styles/styled.d.ts | 5 +++++ src/views/dialogs/WithdrawalGateDialog.tsx | 10 +++++----- tsconfig.json | 2 +- 3 files changed, 11 insertions(+), 6 deletions(-) create mode 100644 src/styles/styled.d.ts diff --git a/src/styles/styled.d.ts b/src/styles/styled.d.ts new file mode 100644 index 0000000..d28135e --- /dev/null +++ b/src/styles/styled.d.ts @@ -0,0 +1,5 @@ +import { ThemeColorBase } from '@/constants/styles/colors'; + +declare module 'styled-components' { + export interface DefaultTheme extends ThemeColorBase {} +} diff --git a/src/views/dialogs/WithdrawalGateDialog.tsx b/src/views/dialogs/WithdrawalGateDialog.tsx index 7af97fb..5edf22e 100644 --- a/src/views/dialogs/WithdrawalGateDialog.tsx +++ b/src/views/dialogs/WithdrawalGateDialog.tsx @@ -74,12 +74,12 @@ Styled.IconContainer = styled.div` justify-content: center; align-items: center; - width: 72px; - height: 72px; + width: 4.5rem; + height: 4.5rem; border-radius: 50%; - min-width: 72px; - min-height: 72px; - background-color: rgba(100, 100, 0, 0.1); + min-width: 4.5rem; + min-height: 4.5rem; + background-color: var(--color-gradient-warning); `; Styled.Icon = styled(Icon)` diff --git a/tsconfig.json b/tsconfig.json index e8cf44e..b0f0336 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -22,6 +22,6 @@ "@/*": ["src/*"] } }, - "include": ["src", "scripts"], + "include": ["src", "scripts", "styled.d.ts"], "references": [{ "path": "./tsconfig.node.json" }] }