forked from mirrors/thatmattlove-hyperglass
fix a stupid typescript missed steak
This commit is contained in:
parent
29c45bc446
commit
1413c460ad
1 changed files with 2 additions and 3 deletions
|
|
@ -7,7 +7,6 @@ import { Logo } from './logo';
|
|||
import { TitleOnly } from './titleOnly';
|
||||
import { SubtitleOnly } from './subtitleOnly';
|
||||
|
||||
import type { StackProps } from '@chakra-ui/react';
|
||||
import type { TTitle, TTitleWrapper, TDWrapper, TMWrapper } from './types';
|
||||
|
||||
const AnimatedVStack = motion.custom(VStack);
|
||||
|
|
@ -49,11 +48,11 @@ const DWrapper = (props: TDWrapper) => {
|
|||
* Universal wrapper for title sub-components, which will be different depending on the
|
||||
* `title_mode` configuration variable.
|
||||
*/
|
||||
const TitleWrapper = (props: TDWrapper | StackProps) => {
|
||||
const TitleWrapper = (props: TDWrapper | TMWrapper) => {
|
||||
const isMobile = useMobile();
|
||||
return (
|
||||
<>
|
||||
{isMobile ? <MWrapper {...(props as StackProps)} /> : <DWrapper {...(props as TDWrapper)} />}
|
||||
{isMobile ? <MWrapper {...(props as TMWrapper)} /> : <DWrapper {...(props as TDWrapper)} />}
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue