From c7b38cc99031f67ce8018e496103d8a8b546cd7f Mon Sep 17 00:00:00 2001 From: Lucemans Date: Mon, 4 Mar 2024 15:30:25 +0000 Subject: [PATCH] Patch Linting --- app/[slug]/page.tsx | 7 +++++-- components/ProfileAvatar/ProfileAvatar.tsx | 5 ++++- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/app/[slug]/page.tsx b/app/[slug]/page.tsx index 625ce86..4c13cd3 100644 --- a/app/[slug]/page.tsx +++ b/app/[slug]/page.tsx @@ -7,12 +7,12 @@ import Link from 'next/link'; import { MonsterOverlay } from '../../components/events/frensday/Monsters/Overlay'; import { EventHeader } from '../../components/Headers/EventHeader'; import { SPOAPModal } from '../../components/POAPModal/SPOAPModal'; +import { ProfileAvatar } from '../../components/ProfileAvatar/ProfileAvatar'; import { RecordsSection } from '../../components/Records/records'; import { XMTPSection } from '../../components/XMTP/section'; import { useEnstate } from '../../hooks/useEnstate'; import { useIYKRef } from '../../hooks/useIYKRef'; import { useWarpcast } from '../../hooks/useWarpcast'; -import { ProfileAvatar } from '../../components/ProfileAvatar/ProfileAvatar'; const theme2Class = { frensday2023: 'theme-frensday2023', @@ -52,7 +52,10 @@ export default async function ({
- +
{event == 'frensday2023' && (
diff --git a/components/ProfileAvatar/ProfileAvatar.tsx b/components/ProfileAvatar/ProfileAvatar.tsx index 85700fa..e8b2abe 100644 --- a/components/ProfileAvatar/ProfileAvatar.tsx +++ b/components/ProfileAvatar/ProfileAvatar.tsx @@ -5,7 +5,10 @@ import { FC, useMemo, useState } from 'react'; import { generateMeshGradientFromName } from './MeshGradient'; -export const ProfileAvatar: FC<{ name: string, avatar?: string }> = ({ name, avatar }) => { +export const ProfileAvatar: FC<{ name: string; avatar?: string }> = ({ + name, + avatar, +}) => { const [failedToLoad, setFailedToLoad] = useState(false); const mesh = useMemo(() => generateMeshGradientFromName(name), [name]);