diff --git a/resources/scripts/components/server/settings/SettingsContainer.tsx b/resources/scripts/components/server/settings/SettingsContainer.tsx index 2f10c1354..5a66438d0 100644 --- a/resources/scripts/components/server/settings/SettingsContainer.tsx +++ b/resources/scripts/components/server/settings/SettingsContainer.tsx @@ -10,12 +10,13 @@ import RenameServerBox from '@/components/server/settings/RenameServerBox'; import DeleteServerBox from '@/components/server/settings/DeleteServerBox'; import ReinstallServerBox from '@/components/server/settings/ReinstallServerBox'; import ChangeBackgroundBox from '@/components/server/settings/ChangeBackgroundBox'; +import { useStoreState } from 'easy-peasy'; export default () => { const deletion = useStoreState((state) => state.storefront.data!.deletion.enabled); const uuid = ServerContext.useStoreState((state) => state.server.data!.uuid); const node = ServerContext.useStoreState((state) => state.server.data!.node); - + const deletion = useStoreState((state) => state.storefront.data!.deletion.enabled); return (