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:
Stef-00012 2025-02-15 19:36:32 +01:00
parent c7d0454195
commit b2b22c6bb8
No known key found for this signature in database
GPG key ID: 28BE9A9E4EF0E6BF
21 changed files with 2122 additions and 2105 deletions

View file

@ -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",