feat: calendar component
This commit is contained in:
17
src/pages/profile_calendar.tsx
Normal file
17
src/pages/profile_calendar.tsx
Normal file
@@ -0,0 +1,17 @@
|
||||
import BigCalendar from "@/components/calendar";
|
||||
import { withTitle } from "@/constructors/Component";
|
||||
import { UrlsTitle } from "@/enums/urls";
|
||||
import { FunctionComponent } from "preact";
|
||||
|
||||
const ProfileCalendar: FunctionComponent = () => {
|
||||
const onDateSelect = (date: Date) => {
|
||||
console.log(date);
|
||||
};
|
||||
return (
|
||||
<div class="flex w-full flex-col items-center">
|
||||
<BigCalendar onDateSelect={onDateSelect} />
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
export default withTitle(UrlsTitle.CALENDAR, ProfileCalendar);
|
||||
Reference in New Issue
Block a user