frontend: fix the mood selector item type and drop an unused read
Pedro Lucas Porcellis porcellis@eletrotupi.com · 12 days ago
dccd3efd61467f2a76eb2773b7e114f1199d46d2 Browse filesParents
d3148e5Changed files
1
Additions
+2
Deletions
-3
frontend/components/ui/EmojiSelectors.tsx
1 1
import React from "react";
2 2
import {
3 3
View,
4 4
Pressable,
5 5
StyleSheet,
13 13
14 14
type IconSource = string | ImageSourcePropType; // either string or a svg
15 15
16 16
// Specialized variant with labels below
17 17
interface MoodSelectorProps {
18 -
items: T<{
18 +
items: {
19 19
id: string;
20 20
icon: IconSource;
21 21
label: string;
22 -
}>;
22 +
}[];
23 23
value?: string;
24 24
onSelect: (id: string) => void;
25 25
disabled?: boolean;
26 26
style?: ViewStyle;
27 27
}
32 32
onSelect,
33 33
disabled = false,
34 34
style,
35 35
}) => {
36 36
const accentBlueColor = useThemeColor({}, "accentBlue");
37 -
const tintColor = useThemeColor({}, "tint");
38 37
const surfaceColor = useThemeColor({}, "surface");
39 38
const dividerColor = useThemeColor({}, "divider");
40 39
const textSecondaryColor = useThemeColor({}, "textSecondary");
41 40
42 41
const styles = StyleSheet.create({
123 122
);
124 123
})}
125 124
</View>
126 125
);
127 126
};