Skip to content

Commit

Permalink
opened registrations for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
joywin2003 committed Nov 22, 2024
1 parent 75feba9 commit 03e406d
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/components/common/cta-section-2.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ export default function FullScreenCTA() {
size="lg"
className="bg-red-600 hover:bg-red-700 text-white py-6 px-4 text-xl transition-all duration-300 transform hover:scale-105"
>
Registrations Open Soon
Register
</Button>
{/* <p className="text-sm text-gray-400">
Early bird pricing ends May 1st. Secure your spot today and save!
Expand Down
2 changes: 1 addition & 1 deletion src/components/widget/header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ const Nav = () => {
size="lg"
className="bg-red-600 hover:bg-red-700 text-white py-4 "
>
Registrations Open Soon
Register
{/* <ArrowRight className="ml-2" /> */}
</Button>
</Link>
Expand Down
2 changes: 1 addition & 1 deletion src/components/widget/hero.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ export default function HeroHighlight() {
size="lg"
className="bg-red-600 hover:bg-red-700 text-white py-2 transition-all duration-300 transform hover:scale-105"
>
Registrations Open Soon
Register
</Button>
</Link>
</div>
Expand Down
10 changes: 5 additions & 5 deletions src/middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ export async function middleware(request: NextRequest) {
return NextResponse.redirect(new URL("/", request.url));
}
}
if (url.pathname.startsWith("/register")) {
if (token?.role !== "ADMIN") {
return NextResponse.redirect(new URL("/", request.url));
}
}
// if (url.pathname.startsWith("/register")) {
// if (token?.role !== "ADMIN") {
// return NextResponse.redirect(new URL("/", request.url));
// }
// }

}

Expand Down

0 comments on commit 03e406d

Please sign in to comment.