diff --git a/libs/pmt-calendar/src/components/month-view/month-view.scss b/libs/pmt-calendar/src/components/month-view/month-view.scss new file mode 100644 index 0000000..9a805ca --- /dev/null +++ b/libs/pmt-calendar/src/components/month-view/month-view.scss @@ -0,0 +1,8 @@ +.monthViewContainer { + padding: 0 1rem; +} +.dayOfWeek { + display: inline-flex; + width: 100%; + justify-content: space-between; +} \ No newline at end of file diff --git a/libs/pmt-calendar/src/components/month-view/month-view.tsx b/libs/pmt-calendar/src/components/month-view/month-view.tsx index ceadeca..7a0336e 100644 --- a/libs/pmt-calendar/src/components/month-view/month-view.tsx +++ b/libs/pmt-calendar/src/components/month-view/month-view.tsx @@ -1,17 +1,31 @@ import { Component, h, Prop } from "@stencil/core"; +import { DAY_OF_WEEK } from "../../models/calendar.const"; @Component({ tag: 'pmt-month-view', - shadow: true + shadow: true, + styleUrl: 'month-view.scss' }) export class MonthViewComponent { @Prop() currentDate: Date; + readonly DAYS_OF_WEEK = Object.values(DAY_OF_WEEK); + + + render() { return ( -