Застрял не могу пробиться уже два часа в App ковыряюсь bgactive и IsHomePage лезут ошибки.
bgActive:
(JSX attribute) bgActive: boolean
Type 'void' is not assignable to type 'boolean'.ts(2322)
interfaces.ts(2, 3): The expected type comes from property 'bgActive' which is declared here on type 'IntrinsicAttributes & MenuHeaderProps & { children?: ReactNode; }'
isHomePage:
(JSX attribute) isHomePage: boolean
Overload 1 of 2, '(props: Pick<Pick<Pick<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "about" | "slot" | ... 253 more ... | "css"> & { ...; } & AppStyledProps, "about" | ... 256 more ... | "isHomePage"> & Partial<...>, "about" | ... 256 more ... | "isHomePage"> & { ...; } & { ...; }): ReactElement<...>', gave the following error.
Type 'void' is not assignable to type 'boolean'.
Overload 2 of 2, '(props: StyledComponentPropsWithAs<"div", DefaultTheme, AppStyledProps, never, "div">): ReactElement<StyledComponentPropsWithAs<"div", DefaultTheme, AppStyledProps, never, "div">, string | ... 1 more ... | (new (props: any) => Component<...>)>', gave the following error.
Type 'void' is not assignable to type 'boolean'.ts(2769)
styles.ts(4, 3): The expected type comes from property 'isHomePage' which is declared here on type 'IntrinsicAttributes & Pick<Pick<Pick<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "about" | ... 254 more ... | "css"> & { ...; } & AppStyledProps, "about" | ... 256 more ... | "isHomePage"> & Partial<...>, "about" | ... 256 more ... | "isHomePage"> & { ...; } & { ...; }'
styles.ts(4, 3): The expected type comes from property 'isHomePage' which is declared here on type 'IntrinsicAttributes & Pick<Pick<Pick<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "about" | ... 254 more ... | "css"> & { ...; } & AppStyledProps, "about" | ... 256 more ... | "isHomePage"> & Partial<...>, "about" | ... 256 more ... | "isHomePage"> & { ...; } & { ...; }'
[statusCode, isHomePage, pageProps])
React Hook useMemo has a missing dependency: 'menu'. Either include it or remove the dependency array.eslintreact-hooks/exhaustive-deps
У тебя на видео вроде все так же, но работает. Пытался подключать в стайлед компоненте в котором isHomePage прописал, но не помогает.
Коммит: