Skip to content

Commit

Permalink
fix: security accerdion
Browse files Browse the repository at this point in the history
  • Loading branch information
stonith404 committed Oct 11, 2022
1 parent 43519d9 commit 8c2c930
Showing 1 changed file with 20 additions and 21 deletions.
41 changes: 20 additions & 21 deletions frontend/src/components/share/CreateUploadModalBody.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -114,27 +114,26 @@ const CreateUploadModalBody = ({
]}
/>
<Accordion>
<Accordion.Item
value="Security options"
sx={{ borderBottom: "none" }}
>
<Stack align="stretch">
<PasswordInput
variant="filled"
placeholder="No password"
label="Password protection"
{...form.getInputProps("password")}
/>

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

0 comments on commit 8c2c930

Please sign in to comment.