mirror of
https://github.com/Stef-00012/Zipline-Android-App.git
synced 2025-05-11 18:35:58 +02:00
add file table view select actions, fix error when uploading over file quota, add welcome + quota stats on home page, update server settings rendering, fix server settings tab being visible in sidebat by admin (non-superadmin), add disabled status for checkbox, increase folder select menu height
This commit is contained in:
parent
c7d0454195
commit
b2b22c6bb8
21 changed files with 2122 additions and 2105 deletions
|
@ -6,8 +6,9 @@ import { View } from "react-native";
|
|||
interface Props {
|
||||
value: boolean;
|
||||
title?: string;
|
||||
onValueChange: () => void | Promise<void>;
|
||||
onValueChange: (value: boolean, id?: Props["id"]) => void | Promise<void>;
|
||||
disabled?: boolean;
|
||||
id?: string;
|
||||
}
|
||||
|
||||
export default function Switch({
|
||||
|
@ -15,13 +16,14 @@ export default function Switch({
|
|||
title,
|
||||
onValueChange,
|
||||
disabled = false,
|
||||
id,
|
||||
}: Props) {
|
||||
return (
|
||||
<View style={styles.switchContainer}>
|
||||
<NativeSwitch
|
||||
disabled={disabled}
|
||||
value={value}
|
||||
onValueChange={onValueChange}
|
||||
onValueChange={(value) => onValueChange(value, id)}
|
||||
thumbColor={value ? "#2e3e6b" : "#222c47"}
|
||||
trackColor={{
|
||||
true: "#21273b",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue