From f9fc48b46376e156f8d7257699521d660f6cd3ad Mon Sep 17 00:00:00 2001 From: trigal Date: Wed, 15 Jan 2025 11:58:18 -0800 Subject: [PATCH] removed references to hasData and the alerts array to fix automation build errors --- .../pages/org/[slug]/[orgLocationId]/edit.tsx | 24 +++--------------- .../org/[slug]/[orgLocationId]/index.tsx | 20 +-------------- apps/app/src/pages/org/[slug]/index.tsx | 25 ------------------- 3 files changed, 5 insertions(+), 64 deletions(-) diff --git a/apps/app/src/pages/org/[slug]/[orgLocationId]/edit.tsx b/apps/app/src/pages/org/[slug]/[orgLocationId]/edit.tsx index 558b969957..5c24f1055c 100644 --- a/apps/app/src/pages/org/[slug]/[orgLocationId]/edit.tsx +++ b/apps/app/src/pages/org/[slug]/[orgLocationId]/edit.tsx @@ -13,7 +13,6 @@ import { prefixedId } from '@weareinreach/api/schemas/idPrefix' import { trpcServerClient } from '@weareinreach/api/trpc' import { checkServerPermissions } from '@weareinreach/auth' import { Button } from '@weareinreach/ui/components/core' -import { AlertMessage } from '@weareinreach/ui/components/core/AlertMessage' import { Toolbar } from '@weareinreach/ui/components/core/Toolbar' import { MultiSelectPopover } from '@weareinreach/ui/components/data-portal/MultiSelectPopover/hook-form' import { ServiceEditDrawer } from '@weareinreach/ui/components/data-portal/ServiceEditDrawer' @@ -59,14 +58,10 @@ const OrgLocationPage: NextPage 0 const { classes } = useStyles() const servicesRef = useRef(null) @@ -181,16 +175,6 @@ const OrgLocationPage: NextPage - {hasAlerts && - alertData.map((alert) => ( - - ))} { error: pageFetchError, } = api.location.forLocationPage.useQuery({ id: orgLocationId }, { enabled: router.isReady }) - interface Alert { - key: string - icon: string - text: string - } - - const { data: alertData }: { data: Alert[] } = { data: [] } const { classes } = useStyles() const servicesRef = useRef(null) @@ -123,16 +115,6 @@ const OrgLocationPage: NextPage = () => { organizationId={orgData.id} /> - {hasAlerts && - alertData?.map((alert) => ( - - ))} 0 const { ref, width } = useElementSize() const { searchState } = useSearchState() const theme = useMantineTheme() @@ -205,21 +195,6 @@ const OrganizationPage = ({ organizationId={organizationId} /> - {hasAlerts && - alertData.map((alert) => { - if (!alert.key) { - return null - } - return ( - - ) - })}