mirror of
https://github.com/utopia-os/utopia-ui.git
synced 2026-03-01 12:44:17 +00:00
removed userType from app state
This commit is contained in:
parent
dfb8c3c155
commit
3f5cb76dec
@ -13,7 +13,6 @@ export function AppShell({
|
||||
appName,
|
||||
children,
|
||||
assetsApi,
|
||||
userType,
|
||||
}: {
|
||||
appName: string
|
||||
children: React.ReactNode
|
||||
@ -23,7 +22,7 @@ export function AppShell({
|
||||
return (
|
||||
<ContextWrapper>
|
||||
<div className='tw-flex tw-flex-col tw-h-full'>
|
||||
<SetAppState assetsApi={assetsApi} userType={userType} />
|
||||
<SetAppState assetsApi={assetsApi} />
|
||||
<NavBar appName={appName}></NavBar>
|
||||
<div id='app-content' className='tw-flex-grow'>
|
||||
{children}
|
||||
|
||||
@ -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 <></>
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user