u
This commit is contained in:
1 parent
b68a37f40b
commit
7971c527af
1 file changed
+3
-5
@@ -85,19 +85,17 @@ export default function AddMoneyDrawer({
|
||||
return (
|
||||
<GridItem key={item.id} _extra={{ className: 'col-span-1' }}>
|
||||
<Pressable
|
||||
className={`flex flex-col items-center justify-center p-1 rounded ${
|
||||
isSelected ? 'bg-blue-100' : ''
|
||||
}`}
|
||||
className="flex flex-col items-center justify-center rounded"
|
||||
onPress={() => setSelectedCategoryId(item.id)}
|
||||
>
|
||||
<View
|
||||
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} />
|
||||
</View>
|
||||
<Text className={`text-sm mt-1 ${isSelected ? 'text-blue-600 font-semibold' : ''}`}>
|
||||
<Text className="text-sm mt-1">
|
||||
{item.name}
|
||||
</Text>
|
||||
</Pressable>
|
||||
|
||||
Reference in new issue
Block a user