mirror of
https://github.com/evroon/bracket.git
synced 2026-04-20 15:27:00 -04:00
Welcome modal
This commit is contained in:
22
frontend/src/components/modals/welcome_modal.tsx
Normal file
22
frontend/src/components/modals/welcome_modal.tsx
Normal file
@@ -0,0 +1,22 @@
|
||||
import {Button, Modal, TextInput} from '@mantine/core';
|
||||
import {useTranslation} from 'next-i18next';
|
||||
import {useState} from 'react';
|
||||
|
||||
export default function WelcomeModal() {
|
||||
const { t } = useTranslation();
|
||||
const [opened, setOpened] = useState(false);
|
||||
|
||||
return (
|
||||
<Modal opened={opened} onClose={() => setOpened(false)} title={t('welcome_title')}>
|
||||
<TextInput
|
||||
withAsterisk
|
||||
label={t('name_input_label')}
|
||||
placeholder={t('club_name_input_placeholder')}
|
||||
/>
|
||||
|
||||
<Button fullWidth style={{ marginTop: 10 }} color="green" type="submit">
|
||||
{t('save_button')}
|
||||
</Button>
|
||||
</Modal>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user