diff options
| author | Oliver <oliver@mohlin.dev> | 2025-04-28 14:38:51 +0200 |
|---|---|---|
| committer | Tobias Järvelöv <tobias.jarvelov@mullvad.net> | 2025-05-19 14:28:48 +0200 |
| commit | f9bb67742175653d17fdd421db5bb628e4c71877 (patch) | |
| tree | cd05fc53d4684241a6c051c81eec84919e37f3ea | |
| parent | 2331e088bb432e617afa034d526e544a895ed944 (diff) | |
| download | mullvadvpn-f9bb67742175653d17fdd421db5bb628e4c71877.tar.xz mullvadvpn-f9bb67742175653d17fdd421db5bb628e4c71877.zip | |
Use new colors in Dot
| -rw-r--r-- | desktop/packages/mullvad-vpn/src/renderer/lib/components/dot/Dot.tsx | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/desktop/packages/mullvad-vpn/src/renderer/lib/components/dot/Dot.tsx b/desktop/packages/mullvad-vpn/src/renderer/lib/components/dot/Dot.tsx index 46501bd894..a2cf2d1fab 100644 --- a/desktop/packages/mullvad-vpn/src/renderer/lib/components/dot/Dot.tsx +++ b/desktop/packages/mullvad-vpn/src/renderer/lib/components/dot/Dot.tsx @@ -1,6 +1,6 @@ import styled from 'styled-components'; -import { DeprecatedColors } from '../../foundations'; +import { colors } from '../../foundations'; export interface DotProps { variant?: 'primary' | 'success' | 'warning' | 'error'; @@ -20,13 +20,13 @@ const sizes = { medium: '12px', }; -const colors = { - primary: DeprecatedColors.white80, - success: DeprecatedColors.green, - warning: DeprecatedColors.yellow, - error: DeprecatedColors.red, +const dotColors = { + primary: colors.white80, + success: colors.brandGreen, + warning: colors.brandYellow, + error: colors.brandRed, }; export const Dot = ({ variant = 'primary', size = 'medium', ...props }: DotProps) => { - return <StyledDiv $size={sizes[size]} $color={colors[variant]} {...props} />; + return <StyledDiv $size={sizes[size]} $color={dotColors[variant]} {...props} />; }; |
