Skip to content

Commit

Permalink
Merge pull request #142 from GnuPixie/main
Browse files Browse the repository at this point in the history
fix: resolve 'React is not defined' error
  • Loading branch information
farhoudshapouran authored Feb 8, 2025
2 parents 10bc9d0 + 36e04b3 commit 674e51f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/components/Header/MonthButton.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import dayjs from 'dayjs';
import { Pressable, StyleSheet, Text, View } from 'react-native';
import { useCalendarContext } from '../../CalendarContext';
import { memo } from 'react';
import React, { memo } from 'react';

const MonthButton = () => {
const { currentDate, calendarView, setCalendarView, theme, locale } =
Expand Down
2 changes: 1 addition & 1 deletion src/components/Header/Selectors.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { useCalendarContext } from '../../CalendarContext';
import MonthButton from './MonthButton';
import YearButton from './YearButton';
import dayjs from 'dayjs';
import { memo } from 'react';
import React, { memo } from 'react';

const Selectors = () => {
const { mode, date, calendarView, setCalendarView, theme, timePicker } =
Expand Down
2 changes: 1 addition & 1 deletion src/components/Header/YearButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Pressable, StyleSheet, Text, View } from 'react-native';
import { useCalendarContext } from '../../CalendarContext';
import { getDateYear, getYearRange } from '../../utils';
import dayjs from 'dayjs';
import { memo } from 'react';
import React, { memo } from 'react';

const YearButton = () => {
const {
Expand Down
2 changes: 1 addition & 1 deletion src/components/WeekDays.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { memo } from 'react';
import React, { memo } from 'react';
import { StyleSheet, Text, View } from 'react-native';
import { getWeekdaysMin } from '../utils';
import { CalendarThemeProps } from '../types';
Expand Down

0 comments on commit 674e51f

Please sign in to comment.