From 305c7fb21d381f56705280655d5bce66fb48a182 Mon Sep 17 00:00:00 2001 From: BillyG83 Date: Tue, 25 Jan 2022 11:48:00 +0100 Subject: [PATCH] fix(Illustration): minor warning fixed by using type --- src/components/Illustrations/index.tsx | 4 ++-- src/components/Illustrations/types.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/Illustrations/index.tsx b/src/components/Illustrations/index.tsx index 5c696244b..0378c1186 100644 --- a/src/components/Illustrations/index.tsx +++ b/src/components/Illustrations/index.tsx @@ -1,2 +1,2 @@ -export { default as Illustration } from "./Illustration"; -export { IllustrationProps } from "./types"; \ No newline at end of file +export { default as Illustration } from './Illustration'; +export type { IllustrationProps } from './types'; diff --git a/src/components/Illustrations/types.ts b/src/components/Illustrations/types.ts index f400a3a60..2f0872daa 100644 --- a/src/components/Illustrations/types.ts +++ b/src/components/Illustrations/types.ts @@ -21,8 +21,8 @@ export const logoState = [ 'marketplace', ] as const; export type Logo = typeof logoState[number]; - export type Size = number | string; + export interface IllustrationProps { id?: string;