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

@@ -10,7 +10,7 @@ import {
} from "@mantine/core";
import Link from "next/link";
import { useEffect, useState } from "react";
import { TbRefresh, TbSettings, TbUsers } from "react-icons/tb";
import { TbLink, TbRefresh, TbSettings, TbUsers } from "react-icons/tb";
import { FormattedMessage } from "react-intl";
import Meta from "../../components/Meta";
import useTranslate from "../../hooks/useTranslate.hook";
@@ -41,6 +41,11 @@ const Admin = () => {
icon: TbUsers,
route: "/admin/users",
},
{
title: t("admin.button.shares"),
icon: TbLink,
route: "/admin/shares",
},
{
title: t("admin.button.config"),
icon: TbSettings,