From cd3eb7e3eb06ca506f6d13b46f9eec0cdb0dca39 Mon Sep 17 00:00:00 2001 From: KSzarek Date: Tue, 23 Apr 2024 09:36:47 +0200 Subject: [PATCH] feat: TET-863 review changes --- src/components/Status/Status.props.ts | 6 ++---- src/components/Status/Status.styles.ts | 2 +- src/components/Status/stylesBuilder/stylesBuilder.ts | 4 ++-- 3 files changed, 5 insertions(+), 7 deletions(-) diff --git a/src/components/Status/Status.props.ts b/src/components/Status/Status.props.ts index 0e95a274..ea66caad 100644 --- a/src/components/Status/Status.props.ts +++ b/src/components/Status/Status.props.ts @@ -1,12 +1,10 @@ import { StatusConfig } from './Status.styles'; import type { StatusAppearance } from './StatusAppearance.type'; -import { StatusEmphasis } from './StatusEmphasis.type'; - -type Status = string; +import type { StatusEmphasis } from './StatusEmphasis.type'; export type StatusProps = { appearance?: StatusAppearance; custom?: StatusConfig; emphasis?: StatusEmphasis; - label?: Status; + label?: string; }; diff --git a/src/components/Status/Status.styles.ts b/src/components/Status/Status.styles.ts index 34765ace..75162ce6 100644 --- a/src/components/Status/Status.styles.ts +++ b/src/components/Status/Status.styles.ts @@ -1,4 +1,4 @@ -import { StatusAppearance } from './StatusAppearance.type'; +import type { StatusAppearance } from './StatusAppearance.type'; import { BaseProps } from '@/types'; diff --git a/src/components/Status/stylesBuilder/stylesBuilder.ts b/src/components/Status/stylesBuilder/stylesBuilder.ts index a210d396..72ddac37 100644 --- a/src/components/Status/stylesBuilder/stylesBuilder.ts +++ b/src/components/Status/stylesBuilder/stylesBuilder.ts @@ -1,6 +1,6 @@ import { defaultConfig, StatusConfig } from '../Status.styles'; -import { StatusAppearance } from '../StatusAppearance.type'; -import { StatusEmphasis } from '../StatusEmphasis.type'; +import type { StatusAppearance } from '../StatusAppearance.type'; +import type { StatusEmphasis } from '../StatusEmphasis.type'; import { mergeConfigWithCustom } from '@/services'; import { BaseProps } from '@/types';