Skip to content

Commit 6751d59

Browse files
committed
refactor: Remove totalActive calculation and active issues summary from HomeScreen
1 parent aefc649 commit 6751d59

File tree

1 file changed

+0
-24
lines changed

1 file changed

+0
-24
lines changed

MobileApp/src/screens/HomeScreen.tsx

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -121,9 +121,6 @@ export default function HomeScreen(): React.JSX.Element {
121121
await refetch();
122122
};
123123

124-
const totalActive: number =
125-
incidentCount + alertCount + incidentEpisodeCount + alertEpisodeCount;
126-
127124
const subtitle: string =
128125
projectList.length === 1
129126
? projectList[0]!.name
@@ -156,27 +153,6 @@ export default function HomeScreen(): React.JSX.Element {
156153
{subtitle}
157154
</Text>
158155

159-
{/* Active Issues Summary Pill */}
160-
{!anyLoading ? (
161-
<View className="self-start mt-3 mb-1">
162-
<View
163-
className="flex-row items-center px-3 py-1.5 rounded-full"
164-
style={{ backgroundColor: theme.colors.actionPrimary + "18" }}
165-
>
166-
<View
167-
className="w-2 h-2 rounded-full mr-2"
168-
style={{ backgroundColor: theme.colors.actionPrimary }}
169-
/>
170-
<Text
171-
className="text-[13px] font-semibold"
172-
style={{ color: theme.colors.actionPrimary }}
173-
>
174-
{totalActive} active issue{totalActive !== 1 ? "s" : ""}
175-
</Text>
176-
</View>
177-
</View>
178-
) : null}
179-
180156
{/* Stat Cards - 2x2 Grid */}
181157
<View className="gap-3 mt-5">
182158
<View className="flex-row gap-3">

0 commit comments

Comments
 (0)