[nobuild] partially continue metrics

This commit is contained in:
Stef-00012 2025-02-08 09:33:24 +01:00
parent 833c9b0d6a
commit 6eb65dc30d
No known key found for this signature in database
GPG key ID: 28BE9A9E4EF0E6BF
5 changed files with 66 additions and 12 deletions

View file

@ -2,6 +2,7 @@ import { styles } from "@/styles/components/datePicker";
import Popup from "./Popup";
import DateTimePicker from 'react-native-ui-datepicker';
import type { DatePickeMultipleProps, DatePickerRangeProps, DatePickerSingleProps } from "react-native-ui-datepicker/lib/typescript/DateTimePicker";
import Button from "./Button";
type Props = (DatePickeMultipleProps | DatePickerRangeProps | DatePickerSingleProps) & {
open: boolean;
@ -28,6 +29,12 @@ export default function DatePicker(props: Props) {
return (
<Popup hidden={!props.open} onClose={props.onClose}>
<DateTimePicker {...defaultProps}/>
<Button
text="Close"
onPress={props.onClose}
color="#171c39"
/>
</Popup>
);
}