mirror of
https://github.com/Stef-00012/Zipline-Android-App.git
synced 2025-05-11 18:35:58 +02:00
[nobuild] partially continue metrics
This commit is contained in:
parent
833c9b0d6a
commit
6eb65dc30d
5 changed files with 66 additions and 12 deletions
|
@ -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>
|
||||
);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue