diff --git a/components/DashboardItem.tsx b/components/DashboardItem.tsx index 70ffd55..4ad8682 100644 --- a/components/DashboardItem.tsx +++ b/components/DashboardItem.tsx @@ -1,21 +1,20 @@ -import { IconProp } from "@fortawesome/fontawesome-svg-core"; -import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; - -type Props = { +export default function dashboardItem({ + name, + value, + icon, +}: { name: string; value: number; - icon: IconProp; -}; - -export default function dashboardItem({ name, value, icon }: Props) { + icon: string; +}) { return ( -
-
- +
+
+
-
-

{name}

-

{value}

+
+

{name}

+

{value}

); diff --git a/pages/dashboard.tsx b/pages/dashboard.tsx index 0cd4bde..d12381b 100644 --- a/pages/dashboard.tsx +++ b/pages/dashboard.tsx @@ -1,24 +1,12 @@ -import useCollectionStore from "@/store/collections"; -import { - faChartSimple, - faChevronRight, - faClockRotateLeft, - faFileImport, - faFolder, - faHashtag, - faLink, - faThumbTack, -} from "@fortawesome/free-solid-svg-icons"; -import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; -import MainLayout from "@/layouts/MainLayout"; import useLinkStore from "@/store/links"; +import useCollectionStore from "@/store/collections"; import useTagStore from "@/store/tags"; +import MainLayout from "@/layouts/MainLayout"; import LinkCard from "@/components/LinkCard"; import { useEffect, useState } from "react"; import useLinks from "@/hooks/useLinks"; import Link from "next/link"; import useWindowDimensions from "@/hooks/useWindowDimensions"; -import { faPlus } from "@fortawesome/free-solid-svg-icons"; import React from "react"; import useModalStore from "@/store/modals"; import { toast } from "react-hot-toast"; @@ -44,8 +32,8 @@ export default function Dashboard() { collections.reduce( (accumulator, collection) => accumulator + (collection._count as any).links, - 0 - ) + 0, + ), ); }, [collections]); @@ -106,10 +94,7 @@ export default function Dashboard() {
- +

Dashboard

@@ -122,7 +107,7 @@ export default function Dashboard() {
@@ -130,7 +115,7 @@ export default function Dashboard() {
@@ -138,25 +123,22 @@ export default function Dashboard() {
- -

Recently Added Links

+ +

Recent

View All - +
@@ -164,7 +146,7 @@ export default function Dashboard() { style={{ flex: "0 1 auto" }} className="flex flex-col 2xl:flex-row items-start 2xl:gap-2" > - {links[0] ? ( + {false && links[0] ? (
{ setNewLinkModal(true); }} - className="inline-flex gap-1 relative w-[11rem] items-center btn btn-accent dark:border-violet-400 text-white group" + className="inline-flex items-center gap-2 text-sm btn btn-accent dark:border-accent text-white" > - - - Create New Link + + + Add New Link
@@ -207,13 +186,10 @@ export default function Dashboard() {
- +

Import From

    @@ -266,18 +242,15 @@ export default function Dashboard() {
    - -

    Pinned Links

    + +

    Pinned

    View All - +