From aee5aacec02b9abf8985692c614968bf1747c19a Mon Sep 17 00:00:00 2001 From: ShivaniKhaire Date: Wed, 14 Oct 2026 14:27:22 +0530 Subject: [PATCH] fix(ui): use StandardIndexCard in AcuPointCardRenderer for colorful badges and chevrons --- .../renderers/collections/PointRenderers.tsx | 23 +++++++++---------- 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/src/features/content/renderers/collections/PointRenderers.tsx b/src/features/content/renderers/collections/PointRenderers.tsx index 396e849..5d99611 100644 --- a/src/features/content/renderers/collections/PointRenderers.tsx +++ b/src/features/content/renderers/collections/PointRenderers.tsx @@ -1,8 +1,6 @@ import React from "react"; -import { Pressable, Text, View } from "react-native"; -import { asString, asStringArray } from "../helpers/value"; +import { asString } from "../helpers/value"; import { CollectionScaffold } from "../shared/CollectionScaffold"; -import { ChipList } from "../shared/ChipList"; import { StandardIndexCard } from "../shared/StandardIndexCard"; import type { CollectionItemRendererProps, CollectionRendererProps } from "../../types/renderer.types"; @@ -25,15 +23,16 @@ export function AcuPointIndexCardRenderer({ item, onPress }: CollectionItemRende } export function AcuPointCardRenderer({ item, onPress }: CollectionItemRendererProps) { const a = item.attributes; + const subtitle = + asString(a.pt_meaning) || + asString(a.channel) || + [asString(a.alt_name_1), asString(a.alt_name_2)].filter(Boolean).join(" ยท "); + return ( - - - - {asString(a.point_name) || asString(a.name) || item.title} - - {asString(a.channel)} - - - + ); } -- 2.34.1