mirror of
https://github.com/AustinKelsay/plebdevs.git
synced 2025-06-06 01:02:04 +00:00
Add log for author in resource payment button
This commit is contained in:
parent
be72bd2c11
commit
9649c92768
@ -13,6 +13,7 @@ import { getTotalFromZaps } from "@/utils/lightning";
|
||||
import { useSession } from "next-auth/react";
|
||||
import useWindowWidth from "@/hooks/useWindowWidth";
|
||||
import dynamic from "next/dynamic";
|
||||
import { auth } from "@getalby/sdk";
|
||||
|
||||
const MDDisplay = dynamic(
|
||||
() => import("@uiw/react-markdown-preview"),
|
||||
@ -42,6 +43,10 @@ const DocumentDetails = ({ processedEvent, topics, title, summary, image, price,
|
||||
console.log("authorView", authorView);
|
||||
}, [authorView]);
|
||||
|
||||
useEffect(() => {
|
||||
console.log("author", author);
|
||||
}, [author]);
|
||||
|
||||
const handleDelete = async () => {
|
||||
try {
|
||||
const response = await axios.delete(`/api/resources/${processedEvent.d}`);
|
||||
|
Loading…
x
Reference in New Issue
Block a user