mirror of
https://github.com/AustinKelsay/plebdevs.git
synced 2025-06-06 18:31:00 +00:00
Hard code lnAdresses for now
This commit is contained in:
parent
9649c92768
commit
04ab5a2428
@ -84,7 +84,8 @@ export default function CourseDetails({ processedEvent, paidCourse, lessons, dec
|
|||||||
if (paidCourse && !decryptionPerformed) {
|
if (paidCourse && !decryptionPerformed) {
|
||||||
return (
|
return (
|
||||||
<CoursePaymentButton
|
<CoursePaymentButton
|
||||||
lnAddress={author?.lnAddress}
|
// lnAddress={author?.lnAddress}
|
||||||
|
lnAddress={"bitcoinplebdev@stacker.news"}
|
||||||
amount={processedEvent.price}
|
amount={processedEvent.price}
|
||||||
onSuccess={handlePaymentSuccess}
|
onSuccess={handlePaymentSuccess}
|
||||||
onError={handlePaymentError}
|
onError={handlePaymentError}
|
||||||
|
@ -101,7 +101,8 @@ export default function CourseDetailsNew({ processedEvent, paidCourse, lessons,
|
|||||||
if (paidCourse && !decryptionPerformed) {
|
if (paidCourse && !decryptionPerformed) {
|
||||||
return (
|
return (
|
||||||
<CoursePaymentButton
|
<CoursePaymentButton
|
||||||
lnAddress={author?.lnAddress}
|
// lnAddress={author?.lnAddress}
|
||||||
|
lnAddress={"bitcoinplebdev@stacker.news"}
|
||||||
amount={processedEvent.price}
|
amount={processedEvent.price}
|
||||||
onSuccess={handlePaymentSuccess}
|
onSuccess={handlePaymentSuccess}
|
||||||
onError={handlePaymentError}
|
onError={handlePaymentError}
|
||||||
|
@ -99,7 +99,8 @@ const DocumentDetails = ({ processedEvent, topics, title, summary, image, price,
|
|||||||
</p>
|
</p>
|
||||||
<div className="flex flex-row items-center justify-center w-full mt-4">
|
<div className="flex flex-row items-center justify-center w-full mt-4">
|
||||||
<ResourcePaymentButton
|
<ResourcePaymentButton
|
||||||
lnAddress={author?.lightningAddress}
|
// lnAddress={author?.lightningAddress}
|
||||||
|
lnAddress={"bitcoinplebdev@stacker.news"}
|
||||||
amount={price}
|
amount={price}
|
||||||
onSuccess={handlePaymentSuccess}
|
onSuccess={handlePaymentSuccess}
|
||||||
onError={handlePaymentError}
|
onError={handlePaymentError}
|
||||||
|
@ -38,6 +38,10 @@ const VideoDetails = ({ processedEvent, topics, title, summary, image, price, au
|
|||||||
}
|
}
|
||||||
}, [zaps, processedEvent]);
|
}, [zaps, processedEvent]);
|
||||||
|
|
||||||
|
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}`);
|
||||||
@ -97,7 +101,8 @@ const VideoDetails = ({ processedEvent, topics, title, summary, image, price, au
|
|||||||
</p>
|
</p>
|
||||||
<div className="flex flex-row items-center justify-center w-full mt-4 z-10">
|
<div className="flex flex-row items-center justify-center w-full mt-4 z-10">
|
||||||
<ResourcePaymentButton
|
<ResourcePaymentButton
|
||||||
lnAddress={author?.lnAddress}
|
// lnAddress={author?.lnAddress}
|
||||||
|
lnAddress={"bitcoinplebdev@stacker.news"}
|
||||||
amount={price}
|
amount={price}
|
||||||
onSuccess={handlePaymentSuccess}
|
onSuccess={handlePaymentSuccess}
|
||||||
onError={handlePaymentError}
|
onError={handlePaymentError}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user