Skip to content

Commit 5871703

Browse files
committed
renaming const
1 parent 078d4b8 commit 5871703

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/expandableCalendar/Context/Provider.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ const CalendarProvider = (props: CalendarContextProviderProps) => {
103103
setDisabled(showTodayButton, disabled, isDisabled, updateState);
104104
};
105105

106-
const getProviderContextValue = useMemo(() => {
106+
const contextValue = useMemo(() => {
107107
return {
108108
date: currentDate,
109109
prevDate: prevDate,
@@ -157,7 +157,7 @@ const CalendarProvider = (props: CalendarContextProviderProps) => {
157157
};
158158

159159
return (
160-
<CalendarContext.Provider value={getProviderContextValue}>
160+
<CalendarContext.Provider value={contextValue}>
161161
<View style={wrapperStyle}>{children}</View>
162162
{showTodayButton && renderTodayButton()}
163163
</CalendarContext.Provider>

0 commit comments

Comments
 (0)