From 579d5664be8d7f32bd54af86ce5e4c35d97c6f16 Mon Sep 17 00:00:00 2001 From: jainarayanan Date: Thu, 5 Sep 2024 14:36:30 -0700 Subject: [PATCH] fix lint issues --- components/projects/ProjectTile.tsx | 59 ++++++++++++++++++++--------- 1 file changed, 42 insertions(+), 17 deletions(-) diff --git a/components/projects/ProjectTile.tsx b/components/projects/ProjectTile.tsx index 967c13b..5018044 100644 --- a/components/projects/ProjectTile.tsx +++ b/components/projects/ProjectTile.tsx @@ -68,7 +68,9 @@ export default function ProjectTile({ project }: { project: Project }) { setIsFavorite(false); } } else { - const { error } = await supabase.from("project_favorites").insert([{ user_id: user.id, project_id: project.id }]); + const { error } = await supabase + .from("project_favorites") + .insert([{ user_id: user.id, project_id: project.id }]); if (!error) { setIsFavorite(true); @@ -81,7 +83,9 @@ export default function ProjectTile({ project }: { project: Project }) { const urls: Record = {}; for (const projectMember of project.profiles) { // eslint-disable-next-line no-await-in-loop - const { data, error } = await supabase.storage.from("avatars").download(projectMember.id); + const { data, error } = await supabase.storage + .from("avatars") + .download(projectMember.id); if (error) { console.error("Error downloading image"); @@ -110,7 +114,10 @@ export default function ProjectTile({ project }: { project: Project }) { return ( <> {/* eslint-disable-next-line jsx-a11y/no-noninteractive-element-interactions */} -
  • setDialogOpen(true)} className="m-0 p-0 list-none rounded-md"> +
  • setDialogOpen(true)} + className="m-0 p-0 list-none rounded-md" + >
    {imagesQuery?.data && - Object.entries(imagesQuery?.data).map(([key, value]: [string, string]) => { - console.log(key); - return ( - - temp - - ); - })} + Object.entries(imagesQuery?.data).map( + ([key, value]: [string, string]) => { + console.log(key); + return ( + + temp + + ); + } + )}
    -

    {project.name}

    +

    + {project.name} +

  • - setDialogOpen(false)}> + setDialogOpen(false)} + >
    - {`${name} -

    {name}

    + {`${name} +

    + {name} +

    - People + + People +
    {project.profiles?.map((profile, i) => ( @@ -251,7 +274,9 @@ export default function ProjectTile({ project }: { project: Project }) { src={imagesQuery?.data?.[profile.id]} alt={`${profile.name} avatar`} /> -

    {profile.name}

    +

    + {profile.name} +

    ))}