feat: add admin-exclusive share-management page (#461)

* testing with all_shares

* share table

* share table

* change icon on admin page

* add share size to list

---------

Co-authored-by: Elias Schneider <login@eliasschneider.com>
This commit is contained in:
SFGrenade
2024-05-03 23:18:27 +02:00
committed by GitHub
parent a45184995f
commit 3b1c9f1efb
8 changed files with 292 additions and 2 deletions

View File

@@ -11,6 +11,10 @@ import {
} from "../types/share.type";
import api from "./api.service";
const list = async (): Promise<MyShare[]> => {
return (await api.get(`shares/all`)).data;
};
const create = async (share: CreateShare) => {
return (await api.post("shares", share)).data;
};
@@ -131,6 +135,7 @@ const removeReverseShare = async (id: string) => {
};
export default {
list,
create,
completeShare,
revertComplete,