diff --git a/apps/mobile/app/components/date-picker/index.tsx b/apps/mobile/app/components/date-picker/index.tsx deleted file mode 100644 index 62a86916b..000000000 --- a/apps/mobile/app/components/date-picker/index.tsx +++ /dev/null @@ -1,91 +0,0 @@ -/* -This file is part of the Notesnook project (https://notesnook.com/) - -Copyright (C) 2023 Streetwriters (Private) Limited - -This program is free software: you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation, either version 3 of the License, or -(at your option) any later version. - -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. - -You should have received a copy of the GNU General Public License -along with this program. If not, see . -*/ -import React from "react"; -import { useThemeColors } from "@notesnook/theme"; -import { useRef } from "react"; -import { useWindowDimensions, View } from "react-native"; -import { defaultBorderRadius } from "../../utils/size"; -import { DefaultAppStyles } from "../../utils/styles"; -import DatePicker from "react-native-date-picker"; -import dayjs from "dayjs"; -import { strings } from "@notesnook/intl"; -import { Button } from "../ui/button"; - -export default function DatePickerComponent(props: { - onConfirm: (date: Date) => void; - onCancel: () => void; -}) { - const { colors, isDark } = useThemeColors(); - const dateRef = useRef(dayjs().add(1, "week").toDate()); - - const { width } = useWindowDimensions(); - - return ( - - { - close?.(); - }} - date={dateRef.current} - onDateChange={(date) => { - dateRef.current = date; - }} - /> - -