This commit is contained in:
oneao committed 2025-11-11 17:30:23 +08:00
1 parent b68a37f40b
commit 7971c527af
1 file changed
+3 -5
@@ -85,19 +85,17 @@ export default function AddMoneyDrawer({
return ( return (
<GridItem key={item.id} _extra={{ className: 'col-span-1' }}> <GridItem key={item.id} _extra={{ className: 'col-span-1' }}>
<Pressable <Pressable
className={`flex flex-col items-center justify-center p-1 rounded ${ className="flex flex-col items-center justify-center rounded"
isSelected ? 'bg-blue-100' : ''
}`}
onPress={() => setSelectedCategoryId(item.id)} onPress={() => setSelectedCategoryId(item.id)}
> >
<View <View
className={`w-14 h-14 rounded-full flex items-center justify-center ${ className={`w-14 h-14 rounded-full flex items-center justify-center ${
isSelected ? 'bg-blue-400' : 'bg-gray-200' isSelected ? 'bg-blue-600' : 'bg-gray-200'
}`} }`}
> >
<MoneyCategoryIcon name={item.icon} size={28} /> <MoneyCategoryIcon name={item.icon} size={28} />
</View> </View>
<Text className={`text-sm mt-1 ${isSelected ? 'text-blue-600 font-semibold' : ''}`}> <Text className="text-sm mt-1">
{item.name} {item.name}
</Text> </Text>
</Pressable> </Pressable>