make dynamic logos partial props

This commit is contained in:
41666 2020-12-06 13:49:45 -05:00
parent f4716584bb
commit ef742bba37
2 changed files with 3 additions and 3 deletions

View file

@ -9,7 +9,7 @@ type DynamicLogoProps = LogoFlagProps & {
currentDate?: Date; currentDate?: Date;
}; };
export const DynamicLogomark = (props: DynamicLogoProps) => { export const DynamicLogomark = (props: Partial<DynamicLogoProps>) => {
const variant = React.useMemo(() => getRelevantVariant(props.currentDate), [ const variant = React.useMemo(() => getRelevantVariant(props.currentDate), [
props.currentDate, props.currentDate,
]); ]);
@ -34,7 +34,7 @@ export const DynamicLogomark = (props: DynamicLogoProps) => {
); );
}; };
export const DynamicLogotype = (props: DynamicLogoProps) => { export const DynamicLogotype = (props: Partial<DynamicLogoProps>) => {
const variant = React.useMemo(() => getRelevantVariant(props.currentDate), [ const variant = React.useMemo(() => getRelevantVariant(props.currentDate), [
props.currentDate, props.currentDate,
]); ]);

View file

@ -28,5 +28,5 @@
"isolatedModules": true "isolatedModules": true
}, },
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"], "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"],
"exclude": ["node_modules", "src/backend-worker"] "exclude": ["node_modules", "**/*.stories.tsx", "src/backend-worker"]
} }