From 679dda94e709087f5fb28bddf75c523b46f2924f Mon Sep 17 00:00:00 2001 From: bwees Date: Tue, 30 Jan 2024 22:10:22 -0600 Subject: [PATCH 1/2] alert fixes --- app/components/sheets/AlertList.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/components/sheets/AlertList.tsx b/app/components/sheets/AlertList.tsx index f8d234c..5286fa4 100644 --- a/app/components/sheets/AlertList.tsx +++ b/app/components/sheets/AlertList.tsx @@ -60,8 +60,8 @@ const AlertList: React.FC = ({ sheetRef }) => { alert.name} + data={shownAlerts.filter((obj, index, self) => self.findIndex(o => o.name === obj.name) === index)} + keyExtractor={alert => alert.key} style={{ height: "100%", marginLeft: 16, paddingTop: 8 }} contentContainerStyle={{ paddingBottom: 35, paddingRight: 16 }} renderItem={({ item: alert }) => { From 9d4b0e8448a281c82eed132ba01c9b290d2565cf Mon Sep 17 00:00:00 2001 From: bwees Date: Tue, 30 Jan 2024 22:10:47 -0600 Subject: [PATCH 2/2] default alert position is now medium --- app/components/sheets/AlertList.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/components/sheets/AlertList.tsx b/app/components/sheets/AlertList.tsx index 5286fa4..28fdca9 100644 --- a/app/components/sheets/AlertList.tsx +++ b/app/components/sheets/AlertList.tsx @@ -36,7 +36,7 @@ const AlertList: React.FC = ({ sheetRef }) => { }, [selectedRoute, alerts]); return ( - + {/* header */}