add upload presets, add more searchable columns to tables

This commit is contained in:
Stef-00012 2025-02-19 20:38:08 +01:00
parent 59e42ef587
commit 5c0ee7428e
No known key found for this signature in database
GPG key ID: 28BE9A9E4EF0E6BF
16 changed files with 782 additions and 43 deletions

View file

@ -1,3 +1,7 @@
import MaterialIcons from "@expo/vector-icons/MaterialIcons";
import { useState, useEffect, type ReactNode } from "react";
import { styles } from "@/styles/components/select";
import CheckBox from "@/components/CheckBox";
import {
Text,
View,
@ -6,10 +10,6 @@ import {
Modal,
type DimensionValue,
} from "react-native";
import MaterialIcons from "@expo/vector-icons/MaterialIcons";
import { useState, useEffect, type ReactNode } from "react";
import { styles } from "@/styles/components/select";
import CheckBox from "@/components/CheckBox";
export interface SelectProps {
data: Array<{
@ -29,7 +29,7 @@ export interface SelectProps {
item: SelectProps["data"][0],
key: string,
) => ReactNode | string;
renderItem?: (item: SelectProps["data"][0]) => ReactNode;
renderItem?: (item: SelectProps["data"][0], closeSelect: () => void) => ReactNode;
id?: string;
width?: DimensionValue;
margin?: {
@ -196,7 +196,9 @@ export default function Select({
onValueChange={() => handleSelect(item, index)}
/>
)}
{renderItem(item)}
{renderItem(item, () => {
setIsOpen(false)
})}
</TouchableOpacity>
)}
/>