Add allow anonymous switch

This commit is contained in:
Manuel
2023-09-21 19:45:30 +02:00
committed by GitHub
parent 141c27cda7
commit b49d021daf
17 changed files with 437 additions and 107 deletions

View File

@@ -0,0 +1,13 @@
import { Stack, Switch } from '@mantine/core';
import { useTranslation } from 'next-i18next';
import { useBoardCustomizationFormContext } from '~/components/Board/Customize/form';
export const AccessCustomization = () => {
const { t } = useTranslation('settings/customization/access');
const form = useBoardCustomizationFormContext();
return (
<Stack>
<Switch label={t('allowGuests.label')} description={t('allowGuests.description')} {...form.getInputProps('access.allowGuests', { type: 'checkbox' })} />
</Stack>
)
}