From bf8a0df4c2b5dade82a5a16f6738d58ec0e1b08e Mon Sep 17 00:00:00 2001 From: Daniel Date: Thu, 17 Aug 2023 16:05:44 -0400 Subject: [PATCH] better input coloring in darkmode --- .../Modal/Collection/CollectionInfo.tsx | 9 +++-- .../Modal/Collection/DeleteCollection.tsx | 8 ++--- .../Modal/Collection/TeamManagement.tsx | 11 +++---- components/Modal/Link/AddOrEditLink.tsx | 11 +++---- components/Modal/User/ChangePassword.tsx | 14 ++++---- components/Modal/User/PrivacySettings.tsx | 2 +- components/Modal/User/ProfileSettings.tsx | 24 +++----------- components/Search.tsx | 2 +- components/TextInput.tsx | 33 +++++++++++++++++++ pages/choose-username.tsx | 5 ++- pages/forgot.tsx | 6 ++-- pages/login.tsx | 8 ++--- pages/register.tsx | 18 ++++------ styles/globals.css | 4 +-- 14 files changed, 79 insertions(+), 76 deletions(-) create mode 100644 components/TextInput.tsx diff --git a/components/Modal/Collection/CollectionInfo.tsx b/components/Modal/Collection/CollectionInfo.tsx index 73198d1..669d05e 100644 --- a/components/Modal/Collection/CollectionInfo.tsx +++ b/components/Modal/Collection/CollectionInfo.tsx @@ -11,6 +11,7 @@ import SubmitButton from "@/components/SubmitButton"; import { HexColorPicker } from "react-colorful"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; import { toast } from "react-hot-toast"; +import TextInput from "@/components/TextInput"; type Props = { toggleCollectionModal: Function; @@ -65,14 +66,12 @@ export default function CollectionInfo({

- setCollection({ ...collection, name: e.target.value }) } - type="text" - placeholder="e.g. Example Collection" - className="w-full rounded-md p-3 dark:bg-neutral-900 border-solid border outline-none border-sky-100 dark:border-neutral-700 focus:border-sky-300 dark:focus:border-sky-600 duration-100" />
@@ -105,7 +104,7 @@ export default function CollectionInfo({

Description