diff --git a/src/Components/AppShell/AppShell.tsx b/src/Components/AppShell/AppShell.tsx index baec6fcc..68249746 100644 --- a/src/Components/AppShell/AppShell.tsx +++ b/src/Components/AppShell/AppShell.tsx @@ -13,7 +13,6 @@ export function AppShell({ appName, children, assetsApi, - userType, }: { appName: string children: React.ReactNode @@ -23,7 +22,7 @@ export function AppShell({ return (
- +
{children} diff --git a/src/Components/AppShell/SetAppState.tsx b/src/Components/AppShell/SetAppState.tsx index eb537911..ac52faea 100644 --- a/src/Components/AppShell/SetAppState.tsx +++ b/src/Components/AppShell/SetAppState.tsx @@ -4,13 +4,7 @@ import { useSetAppState } from './hooks/useAppState' import type { AssetsApi } from '#types/AssetsApi' -export const SetAppState = ({ - assetsApi, - userType, -}: { - assetsApi: AssetsApi - userType: string -}) => { +export const SetAppState = ({ assetsApi }: { assetsApi: AssetsApi }) => { const setAppState = useSetAppState() useEffect(() => { @@ -18,9 +12,5 @@ export const SetAppState = ({ // eslint-disable-next-line react-hooks/exhaustive-deps }, [assetsApi]) - useEffect(() => { - setAppState({ userType }) - }, [setAppState, userType]) - return <> }