Add folder uploads, add settings description, add metrics increase/decrease percentage

This commit is contained in:
Stef-00012 2025-03-29 13:39:24 +01:00
parent 274343a5cf
commit 27edb6730f
No known key found for this signature in database
GPG key ID: 28BE9A9E4EF0E6BF
30 changed files with 1270 additions and 225 deletions

View file

@ -40,6 +40,7 @@ interface CustomColorPickerProps {
initialColor?: string;
showOpacity?: boolean;
showPreview?: boolean;
description?: string;
showInput?: boolean;
disabled?: boolean;
showHue?: boolean;
@ -85,6 +86,7 @@ export default function ColorPicker({
previewHideText,
showHue = true,
onSelectColor,
description,
title,
panel,
}: CustomColorPickerProps) {
@ -116,14 +118,23 @@ export default function ColorPicker({
return (
<>
{title && (
<Text
style={{
...styles.inputHeader,
...(disabled && styles.inputHeaderDisabled),
}}
>
{title}
</Text>
<>
<Text
style={{
...styles.inputHeader,
...(!description && {
marginBottom: 5,
}),
...(disabled && styles.inputHeaderDisabled),
}}
>
{title}
</Text>
{description && (
<Text style={styles.inputDescription}>{description}</Text>
)}
</>
)}
<Pressable
disabled={disabled}