1
0
mirror of https://github.com/stonith404/pingvin-share.git synced 2024-11-05 07:20:13 +01:00

fix: security accerdion

This commit is contained in:
Elias Schneider 2022-10-11 08:55:30 +02:00
parent 43519d9f26
commit 8c2c930153

View File

@ -114,27 +114,26 @@ const CreateUploadModalBody = ({
]} ]}
/> />
<Accordion> <Accordion>
<Accordion.Item <Accordion.Item value="security" sx={{ borderBottom: "none" }}>
value="Security options" <Accordion.Control>Security options</Accordion.Control>
sx={{ borderBottom: "none" }} <Accordion.Panel>
> <Stack align="stretch">
<Stack align="stretch"> <PasswordInput
<PasswordInput variant="filled"
variant="filled" placeholder="No password"
placeholder="No password" label="Password protection"
label="Password protection" {...form.getInputProps("password")}
{...form.getInputProps("password")} />
/> <NumberInput
min={1}
<NumberInput type="number"
min={1} variant="filled"
type="number" placeholder="No limit"
variant="filled" label="Maximal views"
placeholder="No limit" {...form.getInputProps("maxViews")}
label="Maximal views" />
{...form.getInputProps("maxViews")} </Stack>
/> </Accordion.Panel>
</Stack>
</Accordion.Item> </Accordion.Item>
</Accordion> </Accordion>
<Button type="submit">Share</Button> <Button type="submit">Share</Button>