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;
};
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,
]);