diff --git a/resources/scripts/components/admin/servers/ServerSettingsContainer.tsx b/resources/scripts/components/admin/servers/ServerSettingsContainer.tsx index 3da8115c2..b3a25ee40 100644 --- a/resources/scripts/components/admin/servers/ServerSettingsContainer.tsx +++ b/resources/scripts/components/admin/servers/ServerSettingsContainer.tsx @@ -20,42 +20,7 @@ import { Actions, useStoreActions } from 'easy-peasy'; import Button from '@/components/elements/Button'; import FormikSwitch from '@/components/elements/FormikSwitch'; import BaseSettingsBox from '@/components/admin/servers/settings/BaseSettingsBox'; - -export function ServerFeatureContainer () { - const { isSubmitting } = useFormikContext(); - - return ( - - - -
- - - - - -
-
- ); -} +import FeatureLimitsBox from '@/components/admin/servers/settings/FeatureLimitsBox'; export function ServerAllocationsContainer ({ server }: { server: Server }) { const { isSubmitting } = useFormikContext(); @@ -259,7 +224,7 @@ export default function ServerSettingsContainer2 ({ server }: { server: Server }
- +
diff --git a/resources/scripts/components/admin/servers/settings/FeatureLimitsBox.tsx b/resources/scripts/components/admin/servers/settings/FeatureLimitsBox.tsx new file mode 100644 index 000000000..d6597dd13 --- /dev/null +++ b/resources/scripts/components/admin/servers/settings/FeatureLimitsBox.tsx @@ -0,0 +1,42 @@ +import React from 'react'; +import { useFormikContext } from 'formik'; +import AdminBox from '@/components/admin/AdminBox'; +import { faConciergeBell } from '@fortawesome/free-solid-svg-icons'; +import tw from 'twin.macro'; +import Field from '@/components/elements/Field'; +import getServerDetails from '@/api/swr/admin/getServerDetails'; + +export default () => { + const { data: server } = getServerDetails(); + const { isSubmitting } = useFormikContext(); + + if (!server) return null; + + return ( + +
+ + + +
+
+ ); +};