From 51488ef59ca729dd1ad66bb17eeb2ad2d0014b31 Mon Sep 17 00:00:00 2001 From: Farhoud Shapouran Date: Mon, 17 Feb 2025 23:47:20 +0300 Subject: [PATCH] Delete src/components/Calendar.tsx --- src/components/Calendar.tsx | 61 ------------------------------------- 1 file changed, 61 deletions(-) delete mode 100644 src/components/Calendar.tsx diff --git a/src/components/Calendar.tsx b/src/components/Calendar.tsx deleted file mode 100644 index 4bbaa53..0000000 --- a/src/components/Calendar.tsx +++ /dev/null @@ -1,61 +0,0 @@ -import React, { ReactNode, useMemo } from 'react'; -import { View, StyleSheet, ViewStyle } from 'react-native'; -import { useCalendarContext } from '../calendar-context'; -import type { CalendarViews } from '../enums'; -import Header from './header'; -import Years from './years'; -import Months from './months'; -import Days from './days'; -import TimePicker from './time-picker'; - -const CalendarView: Record = { - year: , - month: , - day: , - time: , -}; - -const defaultStyles = StyleSheet.create({ - root: { - flex: 1, - }, -}); - -const Calendar = () => { - const { - hideHeader, - calendarView, - style = {}, - className = '', - styles = {}, - classNames = {}, - containerHeight, - navigationPosition, - } = useCalendarContext(); - - const containerStyle: ViewStyle = useMemo( - () => ({ - height: containerHeight, - }), - [containerHeight] - ); - - return ( - - {!hideHeader ? ( -
- ) : null} - {CalendarView[calendarView]} - - ); -}; - -export default Calendar;