mirror of
https://github.com/Stef-00012/Zipline-Android-App.git
synced 2025-05-11 18:35:58 +02:00
Add folder uploads, add settings description, add metrics increase/decrease percentage
This commit is contained in:
parent
274343a5cf
commit
27edb6730f
30 changed files with 1270 additions and 225 deletions
|
@ -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}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue