Added tag support + Post link and many more changes and optimizations.
This commit is contained in:
@@ -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>;
|
||||
}
|
||||
@@ -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>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user