Skip to content

Commit

Permalink
conditional style added to the company registration button shownup
Browse files Browse the repository at this point in the history
  • Loading branch information
Duosi-Dai committed Nov 13, 2024
1 parent a22f5f6 commit 3bee5cd
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ export default async function HomePage() {
const today = Date.now()
return (
<>
<NavigationMenu aside={<CompanyRegistrationButton />} />
<NavigationMenu
aside={today < fr_end ? <CompanyRegistrationButton /> : ""}
/>
<Page.Background className="">
<div className="mb-5 flex w-full flex-1 justify-center ">
<div className="mx-5 w-full max-w-[800px] pt-3 md:mx-10 md:pt-6">
Expand Down Expand Up @@ -104,9 +106,9 @@ export default async function HomePage() {
src={
exhibitor.name === "Nordea"
? "/exhibitorLogo/NordeaBankLogo.png"
: (exhibitor.logo_squared ??
: exhibitor.logo_squared ??
exhibitor.logo_freesize ??
"")
""
}
alt={exhibitor.name}
width={600}
Expand Down

0 comments on commit 3bee5cd

Please sign in to comment.