mirror of
https://github.com/AustinKelsay/plebdevs.git
synced 2025-06-06 18:31:00 +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 { useSession } from "next-auth/react";
|
||||||
import useWindowWidth from "@/hooks/useWindowWidth";
|
import useWindowWidth from "@/hooks/useWindowWidth";
|
||||||
import dynamic from "next/dynamic";
|
import dynamic from "next/dynamic";
|
||||||
|
import { auth } from "@getalby/sdk";
|
||||||
|
|
||||||
const MDDisplay = dynamic(
|
const MDDisplay = dynamic(
|
||||||
() => import("@uiw/react-markdown-preview"),
|
() => import("@uiw/react-markdown-preview"),
|
||||||
@ -42,6 +43,10 @@ const DocumentDetails = ({ processedEvent, topics, title, summary, image, price,
|
|||||||
console.log("authorView", authorView);
|
console.log("authorView", authorView);
|
||||||
}, [authorView]);
|
}, [authorView]);
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
console.log("author", author);
|
||||||
|
}, [author]);
|
||||||
|
|
||||||
const handleDelete = async () => {
|
const handleDelete = async () => {
|
||||||
try {
|
try {
|
||||||
const response = await axios.delete(`/api/resources/${processedEvent.d}`);
|
const response = await axios.delete(`/api/resources/${processedEvent.d}`);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user