mirror of
https://github.com/AustinKelsay/plebdevs.git
synced 2025-06-05 00:32:03 +00:00
cleanup
This commit is contained in:
parent
8d0c349bb3
commit
ff809813d9
@ -22,7 +22,6 @@ import useWindowWidth from '@/hooks/useWindowWidth';
|
|||||||
import GenericButton from '@/components/buttons/GenericButton';
|
import GenericButton from '@/components/buttons/GenericButton';
|
||||||
import appConfig from '@/config/appConfig';
|
import appConfig from '@/config/appConfig';
|
||||||
import { BookOpen } from 'lucide-react';
|
import { BookOpen } from 'lucide-react';
|
||||||
import { useSession } from 'next-auth/react';
|
|
||||||
|
|
||||||
export function CourseTemplate({ course, showMetaTags = true }) {
|
export function CourseTemplate({ course, showMetaTags = true }) {
|
||||||
const { zaps, zapsLoading, zapsError } = useZapsSubscription({
|
const { zaps, zapsLoading, zapsError } = useZapsSubscription({
|
||||||
@ -35,7 +34,6 @@ export function CourseTemplate({ course, showMetaTags = true }) {
|
|||||||
const { returnImageProxy } = useImageProxy();
|
const { returnImageProxy } = useImageProxy();
|
||||||
const windowWidth = useWindowWidth();
|
const windowWidth = useWindowWidth();
|
||||||
const isMobile = windowWidth < 768;
|
const isMobile = windowWidth < 768;
|
||||||
const { data: session } = useSession();
|
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (zaps.length > 0) {
|
if (zaps.length > 0) {
|
||||||
@ -112,9 +110,8 @@ export function CourseTemplate({ course, showMetaTags = true }) {
|
|||||||
</div>
|
</div>
|
||||||
</CardHeader>
|
</CardHeader>
|
||||||
<CardContent
|
<CardContent
|
||||||
className={`${
|
className={`${isMobile ? 'px-3' : ''
|
||||||
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%]">
|
||||||
{course &&
|
{course &&
|
||||||
@ -145,9 +142,8 @@ export function CourseTemplate({ course, showMetaTags = true }) {
|
|||||||
)}
|
)}
|
||||||
</CardContent>
|
</CardContent>
|
||||||
<CardDescription
|
<CardDescription
|
||||||
className={`${
|
className={`${isMobile ? 'w-full p-3' : 'p-6'
|
||||||
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',
|
||||||
display: '-webkit-box',
|
display: '-webkit-box',
|
||||||
@ -164,9 +160,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 ${
|
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' : ''
|
||||||
isMobile ? 'px-3' : ''
|
}`}
|
||||||
}`}
|
|
||||||
>
|
>
|
||||||
<p className="text-sm text-gray-300">
|
<p className="text-sm text-gray-300">
|
||||||
{course?.published_at && course.published_at !== ''
|
{course?.published_at && course.published_at !== ''
|
||||||
|
@ -11,8 +11,7 @@ const appConfig = {
|
|||||||
],
|
],
|
||||||
authorPubkeys: [
|
authorPubkeys: [
|
||||||
'f33c8a9617cb15f705fc70cd461cfd6eaf22f9e24c33eabad981648e5ec6f741',
|
'f33c8a9617cb15f705fc70cd461cfd6eaf22f9e24c33eabad981648e5ec6f741',
|
||||||
'c67cd3e1a83daa56cff16f635db2fdb9ed9619300298d4701a58e68e84098345',
|
'c67cd3e1a83daa56cff16f635db2fdb9ed9619300298d4701a58e68e84098345'
|
||||||
'b9f4c34dc25b2ddd785c007bf6e12619bb1c9b8335b8d75d37bf76e97d1a0e31',
|
|
||||||
],
|
],
|
||||||
customLightningAddresses: [
|
customLightningAddresses: [
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user