diff --git a/components/CollectionCard.tsx b/components/CollectionCard.tsx index e2b85f8..955bd30 100644 --- a/components/CollectionCard.tsx +++ b/components/CollectionCard.tsx @@ -10,6 +10,8 @@ import usePermissions from "@/hooks/usePermissions"; import useLocalSettingsStore from "@/store/localSettings"; import getPublicUserData from "@/lib/client/getPublicUserData"; import useAccountStore from "@/store/account"; +import EditCollectionModal from "./Modals/EditCollectionModal"; +import EditCollectionSharingModal from "./Modals/EditCollectionSharingModal"; type Props = { collection: CollectionIncludingMembersAndLinkCount; @@ -57,6 +59,10 @@ export default function CollectionCard({ collection, className }: Props) { fetchOwner(); }, [collection]); + const [editCollectionModal, setEditCollectionModal] = useState(false); + const [editCollectionSharingModal, setEditCollectionSharingModal] = + useState(false); + return (
{count + 1}
++ {unescapeString(link.name || link.description)} +
+{collection?.name}
+ -{count + 1}
-- {unescapeString(link.name || link.description)} -
-{collection?.name}
- - - {/* {link.tags[0] ? ( + {/* {link.tags[0] ? ({shortendURL}
- -{formattedDate}
-{shortendURL}
+ +{formattedDate}
Color
-Color
+Description
Username
diff --git a/pages/collections/[id].tsx b/pages/collections/[id].tsx index e6b2caf..f2189cd 100644 --- a/pages/collections/[id].tsx +++ b/pages/collections/[id].tsx @@ -16,6 +16,8 @@ import NoLinksFound from "@/components/NoLinksFound"; import useLocalSettingsStore from "@/store/localSettings"; import useAccountStore from "@/store/account"; import getPublicUserData from "@/lib/client/getPublicUserData"; +import EditCollectionModal from "@/components/Modals/EditCollectionModal"; +import EditCollectionSharingModal from "@/components/Modals/EditCollectionSharingModal"; export default function Index() { const { setModal } = useModalStore(); @@ -71,13 +73,17 @@ export default function Index() { fetchOwner(); }, [activeCollection]); + const [editCollectionModal, setEditCollectionModal] = useState(false); + const [editCollectionSharingModal, setEditCollectionSharingModal] = + useState(false); + return (Showing {activeCollection?._count?.links} results
@@ -184,14 +180,7 @@ export default function Index() { tabIndex={0} onClick={() => { (document?.activeElement as HTMLElement)?.blur(); - activeCollection && - setModal({ - modal: "COLLECTION", - state: true, - method: "UPDATE", - isOwner: permissions === true, - active: activeCollection, - }); + setEditCollectionModal(true); }} > Edit Collection Info @@ -205,15 +194,7 @@ export default function Index() { tabIndex={0} onClick={() => { (document?.activeElement as HTMLElement)?.blur(); - activeCollection && - setModal({ - modal: "COLLECTION", - state: true, - method: "UPDATE", - isOwner: permissions === true, - active: activeCollection, - defaultIndex: permissions === true ? 1 : 0, - }); + setEditCollectionSharingModal(true); }} > {permissions === true @@ -262,6 +243,22 @@ export default function Index() {New Collection
A sign in link has been sent to your email address.
diff --git a/pages/dashboard.tsx b/pages/dashboard.tsx index 76c7e50..5450342 100644 --- a/pages/dashboard.tsx +++ b/pages/dashboard.tsx @@ -122,8 +122,7 @@ export default function Dashboard() { icon={faLink} /> -diff --git a/pages/login.tsx b/pages/login.tsx index 0684f90..b9bdb3d 100644 --- a/pages/login.tsx +++ b/pages/login.tsx @@ -68,7 +68,7 @@ export default function Login() { Enter your credentials
-
diff --git a/pages/public/collections/[id].tsx b/pages/public/collections/[id].tsx
index 1cd4058..c5acf50 100644
--- a/pages/public/collections/[id].tsx
+++ b/pages/public/collections/[id].tsx
@@ -103,7 +103,7 @@ export default function PublicCollections() {
style={{
backgroundImage: `linear-gradient(${collection?.color}30 10%, ${
settings.theme === "dark" ? "#262626" : "#f3f4f6"
- } 50%, ${settings.theme === "dark" ? "#171717" : "#ffffff"} 100%)`,
+ } 18rem, ${settings.theme === "dark" ? "#171717" : "#ffffff"} 100%)`,
}}
>
{collection.description}
-Display Name
diff --git a/pages/settings/account.tsx b/pages/settings/account.tsx index c126e4e..3796cf8 100644 --- a/pages/settings/account.tsx +++ b/pages/settings/account.tsx @@ -153,7 +153,7 @@ export default function Account() {Account Settings
-
This will permanently delete ALL the Links, Collections, Tags, and
diff --git a/pages/settings/api.tsx b/pages/settings/api.tsx
index 2bc8d71..ab1f174 100644
--- a/pages/settings/api.tsx
+++ b/pages/settings/api.tsx
@@ -56,7 +56,7 @@ export default function Api() {
API Keys (Soon) Appearance Link Card Archive Settings Formats to Archive webpages: Billing Settings
diff --git a/pages/settings/delete.tsx b/pages/settings/delete.tsx
index 3c88a84..7ee7473 100644
--- a/pages/settings/delete.tsx
+++ b/pages/settings/delete.tsx
@@ -7,7 +7,7 @@ import Link from "next/link";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import { faChevronLeft } from "@fortawesome/free-solid-svg-icons";
-export default function Password() {
+export default function Delete() {
const [password, setPassword] = useState("");
const [comment, setComment] = useState
This will permanently delete all the Links, Collections, Tags, and
diff --git a/pages/settings/password.tsx b/pages/settings/password.tsx
index eac9316..c880375 100644
--- a/pages/settings/password.tsx
+++ b/pages/settings/password.tsx
@@ -47,7 +47,7 @@ export default function Password() {
Change Password
To change your password, please fill out the following. Your password
diff --git a/pages/subscribe.tsx b/pages/subscribe.tsx
index 840e5bd..0524822 100644
--- a/pages/subscribe.tsx
+++ b/pages/subscribe.tsx
@@ -35,7 +35,7 @@ export default function Subscribe() {
Subscribe to Linkwarden!
+
+
+
+
+
+
+
+
+
+