diff --git a/packages/client/src/components/hoc/withAuthUser.tsx b/packages/client/src/components/hoc/withAuthUser.tsx index b3a81c8..ca8928a 100644 --- a/packages/client/src/components/hoc/withAuthUser.tsx +++ b/packages/client/src/components/hoc/withAuthUser.tsx @@ -5,8 +5,13 @@ import { useNavigate, useLocation } from 'react-router-dom' import { RootState, useAppDispatch } from '@/store' import { useSelector } from 'react-redux' +type WithAuthUserProps = { + userIsLogged: boolean + user: UserType | null +} + export default function withAuthUser
( - Component: ComponentType
, + Component: ComponentType
, redirectTo?: string ) { return function WrappedWithAuthUser(props: P) {