From e3862188de214551c09f79ae551bc1c86d9d93fa Mon Sep 17 00:00:00 2001 From: Daniel Date: Thu, 18 May 2023 21:32:17 +0330 Subject: [PATCH] added settings modal UI --- components/Checkbox.tsx | 7 +++-- components/Modal/AddCollection.tsx | 2 +- components/Modal/AddLink.tsx | 2 +- components/Modal/DeleteCollection.tsx | 8 +++--- components/Modal/EditCollection.tsx | 4 +-- components/Modal/EditLink.tsx | 2 +- components/Navbar.tsx | 1 + lib/api/controllers/users/getUsers.ts | 25 ++++++++++------- lib/client/getInitialData.ts | 5 +++- pages/api/routes/users/index.ts | 5 +++- pages/collections/[id].tsx | 2 +- .../migration.sql | 4 +++ prisma/schema.prisma | 3 +++ store/account.ts | 27 +++++++++++++++++++ store/tags.ts | 1 - 15 files changed, 74 insertions(+), 24 deletions(-) create mode 100644 prisma/migrations/20230518175141_updated_user_model/migration.sql create mode 100644 store/account.ts diff --git a/components/Checkbox.tsx b/components/Checkbox.tsx index 4294d7c..b9a7321 100644 --- a/components/Checkbox.tsx +++ b/components/Checkbox.tsx @@ -5,12 +5,15 @@ import { ChangeEventHandler } from "react"; type Props = { label: string; state: boolean; + className?: string; onClick: ChangeEventHandler; }; -export default function Checkbox({ label, state, onClick }: Props) { +export default function Checkbox({ label, state, className, onClick }: Props) { return ( -