-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #134 from NIAEFEUP/fix/emails
fix: emails
- Loading branch information
Showing
11 changed files
with
159 additions
and
86 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
'use client' | ||
import FullCalendar from '@fullcalendar/react' | ||
import dayGridPlugin from '@fullcalendar/daygrid' // a plugin! | ||
import googleCalendarPlugin from '@fullcalendar/google-calendar' | ||
import SectionHeader from '../../../../components/Common/SectionHeader' | ||
|
||
const CalendarComponent = ({ calendarID, calendarApiKey }: { calendarID: string | undefined, calendarApiKey: string | undefined }) => { | ||
return ( | ||
<> | ||
<section id="calendar" className="py-20 md:px-10 lg:py-25 xl:py-30"> | ||
<div className="mx-auto max-w-c-1315 px-4 md:px-8 xl:px-0"> | ||
<SectionHeader | ||
headerInfo={{ | ||
title: "Calendar", | ||
subtitle: "Available Dates", | ||
description: `Lorem ipsum dolor sit amet, consectetur adipiscing elit. In | ||
convallis tortor eros. Donec vitae tortor lacus. Phasellus aliquam | ||
ante in maximus.`, | ||
}} | ||
/> | ||
<div className="bg-white mt-8"> | ||
<FullCalendar | ||
plugins={[dayGridPlugin, googleCalendarPlugin]} | ||
initialView='dayGridMonth' | ||
headerToolbar={{ | ||
right: "today,prev,next" | ||
}} | ||
googleCalendarApiKey={calendarApiKey} | ||
events={{ | ||
googleCalendarId: calendarID | ||
}} | ||
eventDataTransform={(event) => { | ||
delete event.url | ||
event.title = event.title ?? "Ocupado" | ||
event.allDay = true | ||
return event | ||
}} | ||
height={700} | ||
/> | ||
</div> | ||
</div> | ||
</section> | ||
</> | ||
) | ||
} | ||
|
||
export default CalendarComponent; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.