Skip to content

Commit 4f09517

Browse files
committed
docs(example): update local package
1 parent ede6d11 commit 4f09517

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

examples/local/src/pages/index.tsx

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,12 @@ import {
1414
Thead,
1515
Tr,
1616
} from '@chakra-ui/react'
17-
import { format, getDate } from 'date-fns'
17+
import { format } from 'date-fns'
1818
import locale from 'date-fns/locale/ko'
1919
import React from 'react'
2020

2121
import useCalendar from '../../../../src'
2222
import { Container } from '../components/Container'
23-
2423
export default function Example() {
2524
const { calendar, headers, body, navigation, view } = useCalendar()
2625

@@ -107,21 +106,16 @@ export default function Example() {
107106
return (
108107
<Tr key={key}>
109108
{days.map((day) => {
110-
const {
111-
key,
112-
value: date,
113-
isCurrentDate,
114-
isCurrentMonth,
115-
} = day
109+
const { key, date, isCurrentDate, isCurrentMonth } = day
116110

117111
return (
118112
<Td key={key} opacity={isCurrentMonth ? 1 : 0.2}>
119113
{isCurrentDate ? (
120114
<Text fontWeight="bold" color="teal.500">
121-
{getDate(date)}
115+
{date}
122116
</Text>
123117
) : (
124-
getDate(date)
118+
date
125119
)}
126120
</Td>
127121
)

0 commit comments

Comments
 (0)