Skip to content

Commit

Permalink
feat: 캘린더 날짜 한글, 업무데이터 삽입 #25
Browse files Browse the repository at this point in the history
  • Loading branch information
kkyuheak committed Feb 16, 2025
1 parent 5a0dd92 commit 5956a2a
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions src/pages/MainPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import dayGridPlugin from "@fullcalendar/daygrid";
import TodaySchedule from "../components/MainPage/TodaySchedule";
import { useOutletContext } from "react-router";
import { twMerge } from "tailwind-merge";
import koLocale from "@fullcalendar/core/locales/ko";

const MainPage = () => {
const sidebarToggle = useOutletContext();
Expand All @@ -26,6 +27,25 @@ const MainPage = () => {
plugins={[dayGridPlugin]}
initialView="dayGridMonth"
height={"calc(100vh - 50px)"}
headerToolbar={{
start: "prev title next", // will normally be on the left. if RTL, will be on the right
center: "",
end: "", // will normally be on the right. if RTL, will be on the left
}}
locale={koLocale}
events={[
{
title: "event 1",
date: "2025-02-14",
color: "#CAD2CB",
start: "2025-02-14",
end: "2025-02-23",
},
{ title: "event 2", date: "2025-02-20" },
]}
eventClick={(info) => {
alert("Event:" + info.event.title);
}}
/>
</div>

Expand Down
Empty file added src/styles/Calandar.css
Empty file.

0 comments on commit 5956a2a

Please sign in to comment.