Skip to content

Commit

Permalink
WEB-11: Edited PageHeader name
Browse files Browse the repository at this point in the history
  • Loading branch information
helenjb committed Sep 25, 2024
1 parent 6811003 commit 554e2a9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/app/page.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import ActiveAnnouncements from "@/components/landing/ActiveAnnouncements";
import CreateAnnouncementEntry from "@/components/landing/CreateAnnouncementEntry";
import Footer from "@/components/landing/Footer";
import LandingHeader from "@/components/shared/PageHeader";
import PastAnnouncements from "@/components/landing/PastAnnouncements";
import UpcomingAnnouncements from "@/components/landing/UpcomingAnnouncements";
import { Announcement } from "@/models/Announcement";
import { AppName } from "@/models/AppName";
import PageHeader from "@/components/shared/PageHeader";

// TODO: Remove hardcoded announcements once API is connected

Expand Down Expand Up @@ -95,14 +95,14 @@ export default function Landing() {
return (
<div className="flex flex-col gap-16 md:gap-20 lg:w-[1128px] lg:mx-auto">
<div className="flex flex-col gap-8 px-4 md:px-8 lg:hidden">
<LandingHeader title={`Welcome, ${name}!`} subtitle={"Send announcements to our applications"}/>
<PageHeader title={`Welcome, ${name}!`} subtitle={"Send announcements to our applications"}/>
<CreateAnnouncementEntry />
<UpcomingAnnouncements announcements={announcements} />
<ActiveAnnouncements announcements={announcements} />
<PastAnnouncements announcements={announcements} />
</div>
<div className="max-lg:hidden flex flex-col gap-8">
<LandingHeader title={`Welcome, ${name}!`} subtitle={"Send announcements to our applications"} />
<PageHeader title={`Welcome, ${name}!`} subtitle={"Send announcements to our applications"} />
<div className="flex flex-row gap-8">
<div className="flex flex-col gap-8">
<CreateAnnouncementEntry />
Expand Down
2 changes: 1 addition & 1 deletion src/components/shared/PageHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ interface Props {
subtitle: String;
}

export default function LandingHeader({ title, subtitle }: Props) {
export default function PageHeader({ title, subtitle }: Props) {
return (
<div className="inline-flex flex-col items-start gap-2 w-full">
<h2 className="text-neutral-800">{title}</h2>
Expand Down

0 comments on commit 554e2a9

Please sign in to comment.