fix: add rule to check if user is owner of share

This commit is contained in:
Elias Schneider
2022-10-10 23:34:03 +02:00
parent e818a29442
commit 2c47b2a284
6 changed files with 47 additions and 17 deletions

View File

@@ -5,6 +5,7 @@ import {
Group,
LoadingOverlay,
Space,
Stack,
Table,
Text,
Title,
@@ -39,14 +40,14 @@ const MyShares = () => {
</Title>
{shares.length == 0 ? (
<Center style={{ height: "70vh" }}>
<Group direction="column" align="center" spacing={10}>
<Stack align="center" spacing={10}>
<Title order={3}>It's empty here 👀</Title>
<Text>You don't have any shares.</Text>
<Space h={5} />
<Button component={NextLink} href="/upload" variant="light">
Create one
</Button>
</Group>
</Stack>
</Center>
) : (
<Table>