feat: add keys & bucket permissions management

This commit is contained in:
2024-08-16 23:10:19 +07:00
parent dfb4e30e23
commit 43af9c8658
30 changed files with 948 additions and 53 deletions
+3 -6
View File
@@ -1,8 +1,8 @@
import Page from "@/context/page-context";
import { useBuckets } from "./hooks";
import { Button, Input } from "react-daisyui";
import { Plus } from "lucide-react";
import { Input } from "react-daisyui";
import BucketCard from "./components/bucket-card";
import CreateBucketDialog from "./components/create-bucket-dialog";
const BucketsPage = () => {
const { data } = useBuckets();
@@ -15,10 +15,7 @@ const BucketsPage = () => {
<div className="flex flex-row items-center gap-2">
<Input placeholder="Search..." />
<div className="flex-1" />
<Button color="primary">
<Plus />
Create Bucket
</Button>
<CreateBucketDialog />
</div>
<div className="grid grid-cols-1 lg:grid-cols-2 gap-4 md:gap-8 items-stretch mt-4 md:mt-8">