@umituz/react-native-ai-generation-content 1.12.34 → 1.12.36
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/domains/creations/application/services/CreationsService.ts +1 -0
- package/src/domains/creations/presentation/components/CreationCard.tsx +1 -1
- package/src/domains/creations/presentation/components/FilterBottomSheet.tsx +11 -0
- package/src/domains/creations/presentation/utils/filterUtils.ts +3 -3
package/package.json
CHANGED
|
@@ -117,7 +117,7 @@ export function CreationCard({
|
|
|
117
117
|
<View style={styles.content}>
|
|
118
118
|
<View>
|
|
119
119
|
<View style={styles.typeRow}>
|
|
120
|
-
<AtomicIcon name={icon} size="sm" color="primary" />
|
|
120
|
+
{icon && <AtomicIcon name={icon} size="sm" color="primary" />}
|
|
121
121
|
<AtomicText style={styles.typeText}>{label}</AtomicText>
|
|
122
122
|
</View>
|
|
123
123
|
<AtomicText style={styles.dateText}>{formattedDate}</AtomicText>
|
|
@@ -64,10 +64,21 @@ export const FilterBottomSheet = forwardRef<BottomSheetModal, FilterBottomSheetP
|
|
|
64
64
|
);
|
|
65
65
|
}, [onFilterPress, selectedIds, styles]);
|
|
66
66
|
|
|
67
|
+
const backgroundStyle = useMemo(() => ({
|
|
68
|
+
backgroundColor: tokens.colors.surface,
|
|
69
|
+
}), [tokens.colors.surface]);
|
|
70
|
+
|
|
71
|
+
const handleIndicatorStyle = useMemo(() => ({
|
|
72
|
+
backgroundColor: tokens.colors.outline,
|
|
73
|
+
}), [tokens.colors.outline]);
|
|
74
|
+
|
|
67
75
|
return (
|
|
68
76
|
<BottomSheetModal
|
|
69
77
|
ref={ref}
|
|
70
78
|
snapPoints={snapPoints}
|
|
79
|
+
backgroundStyle={backgroundStyle}
|
|
80
|
+
handleIndicatorStyle={handleIndicatorStyle}
|
|
81
|
+
enablePanDownToClose
|
|
71
82
|
>
|
|
72
83
|
<View style={styles.header}>
|
|
73
84
|
<AtomicText style={styles.headerTitle}>{title}</AtomicText>
|
|
@@ -14,7 +14,7 @@ export const getFilterCategoriesFromConfig = (
|
|
|
14
14
|
): FilterCategory[] => {
|
|
15
15
|
const categories: FilterCategory[] = [];
|
|
16
16
|
|
|
17
|
-
if (config.types.length > 0) {
|
|
17
|
+
if (config.types && config.types.length > 0) {
|
|
18
18
|
categories.push({
|
|
19
19
|
id: 'type',
|
|
20
20
|
title: t(config.translations.filterTitle),
|
|
@@ -22,12 +22,12 @@ export const getFilterCategoriesFromConfig = (
|
|
|
22
22
|
options: config.types.map(type => ({
|
|
23
23
|
id: type.id,
|
|
24
24
|
label: t(type.labelKey),
|
|
25
|
-
icon: type.icon
|
|
25
|
+
icon: type.icon
|
|
26
26
|
}))
|
|
27
27
|
});
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
-
if (config.filterCategories) {
|
|
30
|
+
if (config.filterCategories && config.filterCategories.length > 0) {
|
|
31
31
|
categories.push(...config.filterCategories);
|
|
32
32
|
}
|
|
33
33
|
|