mirror of
https://github.com/AustinKelsay/plebdevs.git
synced 2025-06-06 18:31:00 +00:00
linted and removed duplicate import in VideoDetails
This commit is contained in:
parent
3f000914d2
commit
6ed7dda3ad
@ -110,7 +110,8 @@ export function CourseTemplate({ course, showMetaTags = true }) {
|
|||||||
</div>
|
</div>
|
||||||
</CardHeader>
|
</CardHeader>
|
||||||
<CardContent
|
<CardContent
|
||||||
className={`${isMobile ? 'px-3' : ''
|
className={`${
|
||||||
|
isMobile ? 'px-3' : ''
|
||||||
} pt-4 pb-2 w-full flex flex-row justify-between items-center`}
|
} pt-4 pb-2 w-full flex flex-row justify-between items-center`}
|
||||||
>
|
>
|
||||||
<div className="flex flex-wrap gap-2 max-w-[65%]">
|
<div className="flex flex-wrap gap-2 max-w-[65%]">
|
||||||
@ -142,7 +143,8 @@ export function CourseTemplate({ course, showMetaTags = true }) {
|
|||||||
)}
|
)}
|
||||||
</CardContent>
|
</CardContent>
|
||||||
<CardDescription
|
<CardDescription
|
||||||
className={`${isMobile ? 'w-full p-3' : 'p-6'
|
className={`${
|
||||||
|
isMobile ? 'w-full p-3' : 'p-6'
|
||||||
} py-2 pt-0 text-base text-neutral-50/90 dark:text-neutral-900/90 overflow-hidden min-h-[4em] flex items-center max-w-[100%]`}
|
} py-2 pt-0 text-base text-neutral-50/90 dark:text-neutral-900/90 overflow-hidden min-h-[4em] flex items-center max-w-[100%]`}
|
||||||
style={{
|
style={{
|
||||||
overflow: 'hidden',
|
overflow: 'hidden',
|
||||||
@ -160,7 +162,8 @@ export function CourseTemplate({ course, showMetaTags = true }) {
|
|||||||
</p>
|
</p>
|
||||||
</CardDescription>
|
</CardDescription>
|
||||||
<CardFooter
|
<CardFooter
|
||||||
className={`flex flex-col sm:flex-row items-start sm:items-center justify-between gap-4 border-t border-gray-700 pt-4 ${isMobile ? 'px-3' : ''
|
className={`flex flex-col sm:flex-row items-start sm:items-center justify-between gap-4 border-t border-gray-700 pt-4 ${
|
||||||
|
isMobile ? 'px-3' : ''
|
||||||
}`}
|
}`}
|
||||||
>
|
>
|
||||||
<p className="text-sm text-gray-300">
|
<p className="text-sm text-gray-300">
|
||||||
|
@ -20,8 +20,7 @@ const MDDisplay = dynamic(() => import('@uiw/react-markdown-preview'), {
|
|||||||
|
|
||||||
const CourseLesson = ({ lesson, course, decryptionPerformed, isPaid, setCompleted }) => {
|
const CourseLesson = ({ lesson, course, decryptionPerformed, isPaid, setCompleted }) => {
|
||||||
const [zapAmount, setZapAmount] = useState(0);
|
const [zapAmount, setZapAmount] = useState(0);
|
||||||
const { zaps, zapsLoading, zapsError } = useZapsQuery({ event: lesson,
|
const { zaps, zapsLoading, zapsError } = useZapsQuery({ event: lesson, type: 'lesson' });
|
||||||
type: 'lesson' });
|
|
||||||
const { returnImageProxy } = useImageProxy();
|
const { returnImageProxy } = useImageProxy();
|
||||||
const menuRef = useRef(null);
|
const menuRef = useRef(null);
|
||||||
const toastRef = useRef(null);
|
const toastRef = useRef(null);
|
||||||
|
@ -15,7 +15,6 @@ import useWindowWidth from '@/hooks/useWindowWidth';
|
|||||||
import dynamic from 'next/dynamic';
|
import dynamic from 'next/dynamic';
|
||||||
import { Toast } from 'primereact/toast';
|
import { Toast } from 'primereact/toast';
|
||||||
import MoreOptionsMenu from '@/components/ui/MoreOptionsMenu';
|
import MoreOptionsMenu from '@/components/ui/MoreOptionsMenu';
|
||||||
import { Buffer } from 'buffer';
|
|
||||||
import ZapThreadsWrapper from '@/components/ZapThreadsWrapper';
|
import ZapThreadsWrapper from '@/components/ZapThreadsWrapper';
|
||||||
import appConfig from '@/config/appConfig';
|
import appConfig from '@/config/appConfig';
|
||||||
import { nip19 } from 'nostr-tools';
|
import { nip19 } from 'nostr-tools';
|
||||||
|
@ -220,7 +220,9 @@ const Details = () => {
|
|||||||
user={nsec || npub || null}
|
user={nsec || npub || null}
|
||||||
relays="wss://nos.lol/, wss://relay.damus.io/, wss://relay.snort.social/, wss://relay.nostr.band/, wss://relay.primal.net/, wss://nostrue.com/, wss://purplerelay.com/, wss://relay.devs.tools/"
|
relays="wss://nos.lol/, wss://relay.damus.io/, wss://relay.snort.social/, wss://relay.nostr.band/, wss://relay.primal.net/, wss://nostrue.com/, wss://purplerelay.com/, wss://relay.devs.tools/"
|
||||||
disable="zaps"
|
disable="zaps"
|
||||||
isAuthorized={!event.price || decryptedContent || session?.user?.role?.subscribed || authorView}
|
isAuthorized={
|
||||||
|
!event.price || decryptedContent || session?.user?.role?.subscribed || authorView
|
||||||
|
}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
) : nAddress !== null ? (
|
) : nAddress !== null ? (
|
||||||
@ -230,7 +232,9 @@ const Details = () => {
|
|||||||
user={npub}
|
user={npub}
|
||||||
relays="wss://nos.lol/, wss://relay.damus.io/, wss://relay.snort.social/, wss://relay.nostr.band/, wss://relay.primal.net/, wss://nostrue.com/, wss://purplerelay.com/, wss://relay.devs.tools/"
|
relays="wss://nos.lol/, wss://relay.damus.io/, wss://relay.snort.social/, wss://relay.nostr.band/, wss://relay.primal.net/, wss://nostrue.com/, wss://purplerelay.com/, wss://relay.devs.tools/"
|
||||||
disable="zaps"
|
disable="zaps"
|
||||||
isAuthorized={!event.price || decryptedContent || session?.user?.role?.subscribed || authorView}
|
isAuthorized={
|
||||||
|
!event.price || decryptedContent || session?.user?.role?.subscribed || authorView
|
||||||
|
}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
) : null}
|
) : null}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user