Added tag support + Post link and many more changes and optimizations.

This commit is contained in:
Daniel
2023-02-24 21:02:28 +03:30
parent e0f4c71eb2
commit 9b53608097
36 changed files with 1062 additions and 176 deletions
+11
View File
@@ -0,0 +1,11 @@
import { useRouter } from "next/router";
export default function () {
const router = useRouter();
const collectionId = Number(router.query.id);
console.log(collectionId);
return <div>{"HI"}</div>;
}
+20
View File
@@ -0,0 +1,20 @@
import { useSession } from "next-auth/react";
import useCollectionSlice from "@/store/collection";
import CollectionCard from "@/components/CollectionCard";
export default function () {
const { collections } = useCollectionSlice();
const { data: session, status } = useSession();
const user = session?.user;
return (
// ml-80
<div className="flex flex-wrap p-5">
{collections.map((e, i) => {
return <CollectionCard key={i} collection={e} />;
})}
</div>
);
}