Skip to content

Commit

Permalink
Merge pull request #135 from NIAEFEUP/fix/types-errors
Browse files Browse the repository at this point in the history
fix:type errors and removed commas
  • Loading branch information
thePeras authored Jan 24, 2025
2 parents c3aab9b + 3481595 commit 3c1a720
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 20 deletions.
8 changes: 1 addition & 7 deletions app/(site)/(aefeup)/requests/calendar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,7 @@ const CalendarComponent = ({ calendarID, calendarApiKey }: { calendarID: string
<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.`,
}}
title= "Calendário"
/>
<div className="bg-white mt-8">
<FullCalendar
Expand Down
2 changes: 1 addition & 1 deletion app/(site)/student/opportunities/client.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const OpportunitiesClientPage = () => {
<div className="animate_top mx-auto text-center">
<SectionHeader
title="Voluntariado"
description="Ações de interesse social e comunitário realizadas de forma desinteressada que desenvolvem competências pessoais e sociais e promovem a responsabilidade, ética e compromisso social.",
description="Ações de interesse social e comunitário realizadas de forma desinteressada que desenvolvem competências pessoais e sociais e promovem a responsabilidade, ética e compromisso social."
/>
</div>
{/* <!-- Section Title End --> */}
Expand Down
8 changes: 4 additions & 4 deletions app/(site)/student/support/client.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ const SocialAidClientPage = async () => {
{/* <!-- Section Title Start --> */}
<div className="animate_top mx-auto text-center">
<SectionHeader
title="Canais de Apoio",
description="Explore os nossos programas de suporte para garantir o seu bem-estar e sucesso académico.",
title="Canais de Apoio"
description="Explore os nossos programas de suporte para garantir o seu bem-estar e sucesso académico."
/>
</div>
{/* <!-- Section Title End --> */}
Expand All @@ -43,8 +43,8 @@ const SocialAidClientPage = async () => {
{/* <!-- Section Title Start --> */}
<div className="animate_top mx-auto text-center">
<SectionHeader
title="Saúde Mental",
description="Apoio psicológico para o bem-estar e sucesso dos estudantes.",
title="Saúde Mental"
description="Apoio psicológico para o bem-estar e sucesso dos estudantes."
/>
</div>
{/* <!-- Section Title End --> */}
Expand Down
5 changes: 0 additions & 5 deletions components/Common/SectionHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,6 @@
import { HeaderInfo } from "@/types/headerInfo";
import { motion } from "framer-motion";

type HeaderInfo = {
title: string;
subtitle?: string;
description?: string;
};

const SectionHeader = ({ title, subtitle, description }: HeaderInfo ) => {

Expand Down
2 changes: 1 addition & 1 deletion tsconfig.tsbuildinfo

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions types/headerInfo.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export type HeaderInfo = {
title: string;
subtitle: string;
description: string;
subtitle?: string;
description?: string;
};

0 comments on commit 3c1a720

Please sign in to comment.