From ef742bba3796edb08a417b37bc4747e3febd0f3e Mon Sep 17 00:00:00 2001 From: Katalina Okano Date: Sun, 6 Dec 2020 13:49:45 -0500 Subject: [PATCH] make dynamic logos partial props --- src/design-system/atoms/branding/DynamicBranding.tsx | 4 ++-- tsconfig.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/design-system/atoms/branding/DynamicBranding.tsx b/src/design-system/atoms/branding/DynamicBranding.tsx index 5ba10c3..0cd8603 100644 --- a/src/design-system/atoms/branding/DynamicBranding.tsx +++ b/src/design-system/atoms/branding/DynamicBranding.tsx @@ -9,7 +9,7 @@ type DynamicLogoProps = LogoFlagProps & { currentDate?: Date; }; -export const DynamicLogomark = (props: DynamicLogoProps) => { +export const DynamicLogomark = (props: Partial) => { const variant = React.useMemo(() => getRelevantVariant(props.currentDate), [ props.currentDate, ]); @@ -34,7 +34,7 @@ export const DynamicLogomark = (props: DynamicLogoProps) => { ); }; -export const DynamicLogotype = (props: DynamicLogoProps) => { +export const DynamicLogotype = (props: Partial) => { const variant = React.useMemo(() => getRelevantVariant(props.currentDate), [ props.currentDate, ]); diff --git a/tsconfig.json b/tsconfig.json index e626992..745aa87 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -28,5 +28,5 @@ "isolatedModules": true }, "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"], - "exclude": ["node_modules", "src/backend-worker"] + "exclude": ["node_modules", "**/*.stories.tsx", "src/backend-worker"] }