Skip to content

Commit

Permalink
chore(rn-base): adjust group list cell text style
Browse files Browse the repository at this point in the history
Signed-off-by: Innei <[email protected]>
  • Loading branch information
Innei committed Jan 24, 2025
1 parent e3baee3 commit 8c5c6d9
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions apps/mobile/src/components/ui/grouped/GroupedList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import type { ViewProps } from "react-native"
import { Pressable, StyleSheet, Text, View } from "react-native"

import { MingcuteRightLine } from "@/src/icons/mingcute_right_line"
import { RightCuteReIcon } from "@/src/icons/right_cute_re"
import { useColor } from "@/src/theme/colors"

type GroupedInsetListCardProps = {
Expand Down Expand Up @@ -132,7 +131,9 @@ export const GroupedInsetListCell: FC<{
<GroupedInsetListBaseCell className="flex-1">
<View className="flex-1">
<Text>{label}</Text>
{!!description && <Text className="text-secondary-label text-sm">{description}</Text>}
{!!description && (
<Text className="text-secondary-label text-sm leading-tight">{description}</Text>
)}
</View>

<View className="mb-auto ml-4 shrink-0">{children}</View>
Expand All @@ -155,11 +156,13 @@ export const GroupedInsetListActionCell: FC<{
>
<View className="flex-1">
<Text>{label}</Text>
{!!description && <Text className="text-secondary-label text-sm">{description}</Text>}
{!!description && (
<Text className="text-secondary-label text-sm leading-tight">{description}</Text>
)}
</View>

<View className="-mr-2 ml-4">
<RightCuteReIcon height={18} width={18} color={rightIconColor} />
<MingcuteRightLine height={18} width={18} color={rightIconColor} />
</View>
</GroupedInsetListBaseCell>
)}
Expand Down

0 comments on commit 8c5c6d9

Please sign in to comment.