Skip to content

Commit beef17d

Browse files
committed
Fix typos
1 parent ca082f5 commit beef17d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/components/Calendar/index.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,13 +79,13 @@ const Calendar: React.FC<Props> = ({
7979
);
8080
}, [current, date, previous]);
8181

82-
const hiddeMonths = useCallback(() => {
82+
const hideMonths = useCallback(() => {
8383
if (showMonths) {
8484
setShowMonths(false);
8585
}
8686
}, [showMonths]);
8787

88-
const hiddeYears = useCallback(() => {
88+
const hideYears = useCallback(() => {
8989
if (showYears) {
9090
setShowYears(false);
9191
}
@@ -254,7 +254,7 @@ const Calendar: React.FC<Props> = ({
254254
<RoundedButton
255255
onClick={() => {
256256
setShowMonths(!showMonths);
257-
hiddeYears();
257+
hideYears();
258258
}}
259259
>
260260
<>{shortString(calendarData.date.locale(i18n).format("MMM"))}</>
@@ -265,7 +265,7 @@ const Calendar: React.FC<Props> = ({
265265
<RoundedButton
266266
onClick={() => {
267267
setShowYears(!showYears);
268-
hiddeMonths();
268+
hideMonths();
269269
}}
270270
>
271271
<>{calendarData.date.year()}</>

0 commit comments

Comments
 (0)