Skip to content

Commit

Permalink
fixing ts check
Browse files Browse the repository at this point in the history
  • Loading branch information
hugocostadev committed Oct 16, 2023
1 parent 8da2029 commit 84c53c7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/ui-client/src/components/FramedIcon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Box, Icon } from '@rocket.chat/fuselage';
import type { Keys } from '@rocket.chat/icons';
import type { FC } from 'react';

type Variant = 'danger' | 'info' | 'success' | 'warning' | 'default';
type Variant = 'danger' | 'info' | 'success' | 'warning' | 'neutral';

type ColorMapType = {
[key in Variant]: {
Expand All @@ -16,10 +16,10 @@ const colorMap: ColorMapType = {
info: { color: 'status-font-on-info', bg: 'status-background-info' },
success: { color: 'status-font-on-success', bg: 'status-background-success' },
warning: { color: 'status-font-on-warning', bg: 'status-background-warning' },
default: { color: 'font-secondary-info', bg: 'surface-tint' },
neutral: { color: 'font-secondary-info', bg: 'surface-tint' },
};

const getColors = (type: Variant) => colorMap[type] || colorMap.default;
const getColors = (type: Variant) => colorMap[type] || colorMap.neutral;

type FramedIconProps = {
type: Variant;
Expand Down

0 comments on commit 84c53c7

Please sign in to comment.