mirror of
https://github.com/roleypoly/roleypoly.git
synced 2025-04-24 19:39:11 +00:00
make dynamic logos partial props
This commit is contained in:
parent
f4716584bb
commit
ef742bba37
2 changed files with 3 additions and 3 deletions
|
@ -9,7 +9,7 @@ type DynamicLogoProps = LogoFlagProps & {
|
|||
currentDate?: Date;
|
||||
};
|
||||
|
||||
export const DynamicLogomark = (props: DynamicLogoProps) => {
|
||||
export const DynamicLogomark = (props: Partial<DynamicLogoProps>) => {
|
||||
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<DynamicLogoProps>) => {
|
||||
const variant = React.useMemo(() => getRelevantVariant(props.currentDate), [
|
||||
props.currentDate,
|
||||
]);
|
||||
|
|
|
@ -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"]
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue