From ffde3739d17e3825eed86724c41e21164c9111c2 Mon Sep 17 00:00:00 2001 From: Carlos Valente Date: Sat, 29 Mar 2025 21:23:47 +0100 Subject: [PATCH] refactor: remove unnecessary abstractions --- apps/client/src/common/components/copy-tag/CopyTag.tsx | 3 +-- apps/client/src/common/models/Util.type.ts | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) delete mode 100644 apps/client/src/common/models/Util.type.ts diff --git a/apps/client/src/common/components/copy-tag/CopyTag.tsx b/apps/client/src/common/components/copy-tag/CopyTag.tsx index 308041bfb..cc22bf23c 100644 --- a/apps/client/src/common/components/copy-tag/CopyTag.tsx +++ b/apps/client/src/common/components/copy-tag/CopyTag.tsx @@ -4,13 +4,12 @@ import { IoCopy } from 'react-icons/io5'; import { Button, ButtonGroup, IconButton, Tooltip } from '@chakra-ui/react'; import { tooltipDelayFast } from '../../../ontimeConfig'; -import { Size } from '../../models/Util.type'; import copyToClipboard from '../../utils/copyToClipboard'; interface CopyTagProps { copyValue: string; label: string; - size?: Size; + size?: 'xs' | 'sm' | 'md' | 'lg'; disabled?: boolean; onClick?: () => void; } diff --git a/apps/client/src/common/models/Util.type.ts b/apps/client/src/common/models/Util.type.ts deleted file mode 100644 index 52c5b3164..000000000 --- a/apps/client/src/common/models/Util.type.ts +++ /dev/null @@ -1 +0,0 @@ -export type Size = 'xs' | 'sm' | 'md' | 'lg';