chore(editor): Fix Icon type (#11324)

This commit is contained in:
Raúl Gómez Morales 2024-10-21 13:55:00 +02:00 committed by GitHub
parent f67c0710e1
commit 0b9b166bbc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,8 +1,9 @@
import type { TextColor } from 'n8n-design-system/types/text';
const ICON_SIZE = ['xsmall', 'small', 'medium', 'large'] as const;
export type IconSize = (typeof ICON_SIZE)[number];
const ICON_COLOR = ['primary', 'danger', 'success', 'warning', 'text-base'] as const;
export type IconColor = (typeof ICON_COLOR)[number];
export type IconColor = TextColor;
const ICON_ORIENTATION = ['horizontal', 'vertical'] as const;
export type IconOrientation = (typeof ICON_ORIENTATION)[number];