From 6724512b3ead682fce582d03104090aa1120a08a Mon Sep 17 00:00:00 2001 From: jainarayanan Date: Fri, 6 Sep 2024 12:20:43 -0700 Subject: [PATCH] fix linting issues --- components/DirectoryLayout.tsx | 8 ++- components/startups/StartupTile.tsx | 80 ++++++++++++++++++++++------- 2 files changed, 68 insertions(+), 20 deletions(-) diff --git a/components/DirectoryLayout.tsx b/components/DirectoryLayout.tsx index a591dcc..7f5b653 100644 --- a/components/DirectoryLayout.tsx +++ b/components/DirectoryLayout.tsx @@ -53,7 +53,9 @@ const DirectoryLayout = (props: LayoutProps) => { if (!startupsQuery?.data) return []; // eslint-disable-next-line @typescript-eslint/no-unsafe-return return startupsQuery.data?.filter((project: Project) => { - const matchesName = project.name.toLowerCase().includes(startupSearchText.toLowerCase()); + const matchesName = project.name + .toLowerCase() + .includes(startupSearchText.toLowerCase()); // const matchesCategory = selectedProjectCategory === "" || project.category === selectedProjectCategory; @@ -64,7 +66,9 @@ const DirectoryLayout = (props: LayoutProps) => { return (
-

The Directory

+

+ The Directory +

= {}; for (const startupMember of profiles) { // eslint-disable-next-line no-await-in-loop - const { data, error } = await supabase.storage.from("avatars").download(startupMember.id); + const { data, error } = await supabase.storage + .from("avatars") + .download(startupMember.id); if (error) { console.error("Error downloading image"); @@ -93,7 +114,10 @@ export default function StartupTile({ startup }: { startup: Startup }) { 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" + >
    -

    {name}

    +

    + {name} +

    -

    {name}

    +

    + {name} +

  • - setDialogOpen(false)}> + setDialogOpen(false)} + >