Skip to content

Commit 7118b05

Browse files
authored
Merge pull request #159 from imaginer-dev/34-update-personal-schedule-ui
๏ฟฝ๊ฐœ์ธ ์Šค์ผ€์ฅด ์ž…๋ ฅ ์‹œ date type ์‚ฌ์šฉ
2 parents 2fdbe9a + 4552a87 commit 7118b05

File tree

3 files changed

+6
-55
lines changed

3 files changed

+6
-55
lines changed

โ€Žsrc/App.tsxโ€Ž

Lines changed: 2 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -1,57 +1,7 @@
1-
import Calendar from './components/common/Calendar';
1+
import { MyCalendarPage } from './pages/index.ts';
22

33
function App() {
4-
return (
5-
<div>
6-
<header className="relative z-10">
7-
<div className="drawer">
8-
<input id="my-drawer-3" type="checkbox" className="drawer-toggle" />
9-
<div className="drawer-content flex flex-col">
10-
{/* Navbar */}
11-
<div className="navbar w-full">
12-
<div className="flex-none lg:hidden">
13-
<label htmlFor="my-drawer-3" aria-label="open sidebar" className="btn btn-square btn-ghost">
14-
<svg
15-
xmlns="http://www.w3.org/2000/svg"
16-
fill="none"
17-
viewBox="0 0 24 24"
18-
className="inline-block h-6 w-6 stroke-current"
19-
>
20-
<path
21-
strokeLinecap="round"
22-
strokeLinejoin="round"
23-
strokeWidth="2"
24-
d="M4 6h16M4 12h16M4 18h16"
25-
></path>
26-
</svg>
27-
</label>
28-
</div>
29-
<div className="flex-1 justify-end">
30-
<h1 className="min-w-40 rounded bg-base-200 p-2 text-center text-sm">๊ฐœ์ธ ์ผ์ • ์บ˜๋ฆฐ๋”</h1>
31-
</div>
32-
</div>
33-
</div>
34-
<div className="drawer-side">
35-
<label htmlFor="my-drawer-3" aria-label="close sidebar" className="drawer-overlay"></label>
36-
<ul className="menu min-h-full w-80 bg-base-200 p-4">
37-
{/* Sidebar content here */}
38-
<li>
39-
<a>๊ทธ๋ฃน ์ผ์ • ์บ˜๋ฆฐ๋” 1</a>
40-
</li>
41-
<li>
42-
<a>๊ทธ๋ฃน ์ผ์ • ์บ˜๋ฆฐ๋” 2</a>
43-
</li>
44-
</ul>
45-
</div>
46-
</div>
47-
</header>
48-
<main className="z-1 relative flex-grow">
49-
<div className="ml-auto max-w-7xl p-4 pb-10 sm:px-6 lg:px-8">
50-
<Calendar />
51-
</div>
52-
</main>
53-
</div>
54-
);
4+
return <MyCalendarPage />;
555
}
566

577
export default App;

โ€Žsrc/components/MyCalendar/CreateEventButton.tsxโ€Ž

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ const CreateEventButton = () => {
5252
<div>
5353
<hr className="mt-1" />
5454
<InputRef title="์ผ์ • ์ œ๋ชฉ" placeholder="์ƒˆ ์ผ์ • ์ œ๋ชฉ" onChange={onTitleChanged} ref={titleRef} />
55-
<InputRef title="์‹œ์ž‘ ๋‚ ์งœ" placeholder="YYYY-MM-DD" onChange={onStartDateChanged} ref={startRef} />
56-
<InputRef title="๋ ๋‚ ์งœ" placeholder="YYYY-MM-DD" onChange={onEndDateChanged} ref={endRef} />
55+
<InputRef type="date" title="์‹œ์ž‘ ๋‚ ์งœ" placeholder="YYYY-MM-DD" onChange={onStartDateChanged} ref={startRef} />
56+
<InputRef type="date" title="๋ ๋‚ ์งœ" placeholder="YYYY-MM-DD" onChange={onEndDateChanged} ref={endRef} />
5757
<hr className="mb-2 mt-2" />
5858
<button className="btn w-full bg-primary text-base-100" onClick={onCreateClicked}>
5959
์ถ”๊ฐ€ํ•˜๊ธฐ

โ€Žsrc/pages/index.tsโ€Ž

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ import JoinPage from './JoinPage';
33
import Loading from '../components/common/Loading/Loading';
44
import LoginPage from './LoginPage';
55
import { NotFound } from './Notfound';
6+
import MyCalendarPage from './MyCalendarPage';
67

78
import * as Policy from './Policy/index';
89

9-
export { ResetPwPage as ResetPwPage, JoinPage, Loading, LoginPage, NotFound, Policy };
10+
export { ResetPwPage as ResetPwPage, JoinPage, Loading, LoginPage, NotFound, Policy, MyCalendarPage };

0 commit comments

Comments
ย (0)