diff --git a/pages/collections/index.tsx b/pages/collections/index.tsx index 477d92d..05891fe 100644 --- a/pages/collections/index.tsx +++ b/pages/collections/index.tsx @@ -1,10 +1,4 @@ import useCollectionStore from "@/store/collections"; -import { - faEllipsis, - faFolder, - faPlus, -} from "@fortawesome/free-solid-svg-icons"; -import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; import CollectionCard from "@/components/CollectionCard"; import { useState } from "react"; import MainLayout from "@/layouts/MainLayout"; @@ -13,6 +7,7 @@ import SortDropdown from "@/components/SortDropdown"; import { Sort } from "@/types/global"; import useSort from "@/hooks/useSort"; import NewCollectionModal from "@/components/ModalContent/NewCollectionModal"; +import PageHeader from "@/components/PageHeader"; export default function Collections() { const { collections } = useCollectionStore(); @@ -28,24 +23,14 @@ export default function Collections() { return ( -
-
-
-
- -
-

- Your Collections -

- -

Collections you own

-
-
-
+
+ +
@@ -63,20 +48,15 @@ export default function Collections() { onClick={() => setNewCollectionModal(true)} >

New Collection

- +
{sortedCollections.filter((e) => e.ownerId !== data?.user.id)[0] ? ( <>
- + +

Other Collections diff --git a/pages/links/index.tsx b/pages/links/index.tsx index 6364e40..dfade81 100644 --- a/pages/links/index.tsx +++ b/pages/links/index.tsx @@ -5,9 +5,8 @@ import useLinks from "@/hooks/useLinks"; import MainLayout from "@/layouts/MainLayout"; import useLinkStore from "@/store/links"; import { Sort } from "@/types/global"; -import { faLink } from "@fortawesome/free-solid-svg-icons"; -import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; -import { useState } from "react"; +import React, { useState } from "react"; +import PageHeader from "@/components/PageHeader"; export default function Links() { const { links } = useLinkStore(); @@ -19,23 +18,18 @@ export default function Links() { return (

-
-
- -
-

All Links

- -

Links from every Collections

-
-
+ +
+ {links[0] ? (
{links.map((e, i) => { diff --git a/pages/links/pinned.tsx b/pages/links/pinned.tsx index ac52af2..a4a70f8 100644 --- a/pages/links/pinned.tsx +++ b/pages/links/pinned.tsx @@ -4,9 +4,8 @@ import useLinks from "@/hooks/useLinks"; import MainLayout from "@/layouts/MainLayout"; import useLinkStore from "@/store/links"; import { Sort } from "@/types/global"; -import { faThumbTack } from "@fortawesome/free-solid-svg-icons"; -import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; -import { useState } from "react"; +import React, { useState } from "react"; +import PageHeader from "@/components/PageHeader"; export default function PinnedLinks() { const { links } = useLinkStore(); @@ -18,19 +17,12 @@ export default function PinnedLinks() { return (
-
-
- -
-

Pinned Links

- -

Pinned Links from your Collections

-
-
- + +