Skip to content

Commit

Permalink
Patch Linting
Browse files Browse the repository at this point in the history
  • Loading branch information
lucemans committed Mar 4, 2024
1 parent 84ba540 commit c7b38cc
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
7 changes: 5 additions & 2 deletions app/[slug]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down Expand Up @@ -52,7 +52,10 @@ export default async function ({
<div className="w-full flex flex-col gap-2 items-center justify-center">
<div className="flex items-center relative w-full pt-8 pb-2">
<div className="mx-auto w-40 h-40 aspect-square border bg-white rounded-full overflow-hidden">
<ProfileAvatar name={enstate.name} avatar={enstate.avatar} />
<ProfileAvatar
name={enstate.name}
avatar={enstate.avatar}
/>
</div>
{event == 'frensday2023' && (
<div className="absolute inset-0">
Expand Down
5 changes: 4 additions & 1 deletion components/ProfileAvatar/ProfileAvatar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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]);

Expand Down

0 comments on commit c7b38cc

Please sign in to comment.