diff --git a/.setup/data/collections.ts b/.setup/data/collections.ts
index 0e6bfd3..c86ada9 100644
--- a/.setup/data/collections.ts
+++ b/.setup/data/collections.ts
@@ -5,7 +5,7 @@ export default [
$write: [],
name: "Shares",
enabled: true,
- permission: "collection",
+ permission: "document",
attributes: [
{
key: "securityID",
diff --git a/src/components/navBar/ActionAvatar.tsx b/src/components/navBar/ActionAvatar.tsx
index e73182d..d49f450 100644
--- a/src/components/navBar/ActionAvatar.tsx
+++ b/src/components/navBar/ActionAvatar.tsx
@@ -1,7 +1,8 @@
-import { ActionIcon, Avatar, Menu } from "@mantine/core";
+import { ActionIcon, Avatar, Menu, Switch } from "@mantine/core";
import { NextLink } from "@mantine/next";
-import { DoorExit, Link } from "tabler-icons-react";
+import { DoorExit, Link, Moon } from "tabler-icons-react";
import aw from "../../utils/appwrite.util";
+import ToggleThemeButton from "./ToggleThemeButton";
const ActionAvatar = () => {
return (
@@ -36,6 +37,10 @@ const ActionAvatar = () => {
>
Sign out
+
Settings
+ }>
+
+
);
};
diff --git a/src/components/navBar/ToggleThemeButton.tsx b/src/components/navBar/ToggleThemeButton.tsx
index c04db74..6542d7b 100644
--- a/src/components/navBar/ToggleThemeButton.tsx
+++ b/src/components/navBar/ToggleThemeButton.tsx
@@ -1,25 +1,18 @@
-import { ActionIcon, useMantineColorScheme } from "@mantine/core";
-import { Sun, MoonStars } from "tabler-icons-react";
+import { Switch, useMantineColorScheme } from "@mantine/core";
const ToggleThemeButton = () => {
const { colorScheme, toggleColorScheme } = useMantineColorScheme();
return (
- toggleColorScheme()}
- sx={(theme) => ({
- backgroundColor:
- theme.colorScheme === "dark"
- ? theme.colors.dark[6]
- : theme.colors.gray[0],
- color:
- theme.colorScheme === "dark"
- ? theme.colors.yellow[4]
- : theme.colors.violet,
- })}
- >
- {colorScheme === "dark" ? : }
-
+
+ toggleColorScheme(v.currentTarget.checked ? "dark" : "light")
+ }
+ onLabel="ON"
+ offLabel="OFF"
+ />
);
};
diff --git a/src/pages/_app.tsx b/src/pages/_app.tsx
index 204c367..cfe50be 100644
--- a/src/pages/_app.tsx
+++ b/src/pages/_app.tsx
@@ -1,7 +1,6 @@
import {
ColorScheme,
Container,
- Group,
LoadingOverlay,
MantineProvider,
Stack,