u
This commit is contained in:
1 parent
8a3dea8545
commit
1903861354
21 files changed
+335
-236
No files matched your search
@@ -39,7 +39,7 @@ export default function EmptyState({
|
||||
{image ?? defaultImages[type]}
|
||||
|
||||
{title && (
|
||||
<Text className="text-2xl font-semibold text-gray-900 mb-2">{title}</Text>
|
||||
<Text className="text-2xl font-semibold text-gray-900 mb-2 text-center ">{title}</Text>
|
||||
)}
|
||||
|
||||
{description && (
|
||||
|
||||
@@ -12,6 +12,7 @@ export interface LucideIconProps {
|
||||
style?: ViewStyle
|
||||
clickable?: boolean
|
||||
className?: string
|
||||
fill?: string
|
||||
}
|
||||
|
||||
export default function LucideIcon({
|
||||
@@ -22,6 +23,7 @@ export default function LucideIcon({
|
||||
onPress,
|
||||
style,
|
||||
clickable = true,
|
||||
fill = 'none',
|
||||
className,
|
||||
}: LucideIconProps) {
|
||||
const IconComponent = icons[icon]
|
||||
@@ -30,12 +32,12 @@ export default function LucideIcon({
|
||||
return null
|
||||
|
||||
if (!clickable) {
|
||||
return <IconComponent size={size} color={color} strokeWidth={strokeWidth} style={style} className={className} />
|
||||
return <IconComponent size={size} color={color} strokeWidth={strokeWidth} style={style} className={className} fill={fill} />
|
||||
}
|
||||
|
||||
return (
|
||||
<Pressable onPress={onPress} style={style} className={className}>
|
||||
<IconComponent size={size} color={color} strokeWidth={strokeWidth} />
|
||||
<IconComponent size={size} color={color} strokeWidth={strokeWidth} fill={fill} />
|
||||
</Pressable>
|
||||
)
|
||||
}
|
||||
Reference in new issue
Block a user