Fix runtime error
This commit is contained in:
@@ -53,9 +53,11 @@
|
||||
"react-dom": "^19.0.0",
|
||||
"react-hook-form": "^7.56.2",
|
||||
"react-icons": "^5.5.0",
|
||||
"react-markdown": "^10.1.0",
|
||||
"react-resizable-panels": "^3.0.1",
|
||||
"react-router-dom": "^7.5.1",
|
||||
"react-scripts": "5.0.1",
|
||||
"remark-gfm": "^4.0.1",
|
||||
"sonner": "^2.0.3",
|
||||
"tailwind-merge": "^3.2.0",
|
||||
"tailwindcss-animate": "^1.0.7",
|
||||
|
||||
@@ -25,7 +25,6 @@
|
||||
Learn how to configure a non-root public URL by running `npm run build`.
|
||||
-->
|
||||
<title>LOAF - Lesbians Over Age Fifty</title>
|
||||
<script src="#"></script>
|
||||
</head>
|
||||
<body>
|
||||
<noscript>You need to enable JavaScript to run this app.</noscript>
|
||||
|
||||
@@ -70,9 +70,12 @@ const PrivateRoute = ({ children, adminOnly = false }) => {
|
||||
};
|
||||
|
||||
function App() {
|
||||
// Use /membership basename only in production
|
||||
const basename = process.env.NODE_ENV === 'production' ? '/membership' : '';
|
||||
|
||||
return (
|
||||
<AuthProvider>
|
||||
<BrowserRouter basename="/membership">
|
||||
<BrowserRouter basename={basename}>
|
||||
<Routes>
|
||||
<Route path="/" element={<Landing />} />
|
||||
<Route path="/register" element={<Register />} />
|
||||
|
||||
@@ -88,7 +88,7 @@ const Landing = () => {
|
||||
<img src={heroLoaf} alt="LOAF" className="w-full max-w-xs md:max-w-[370px] h-auto object-contain" />
|
||||
</div>
|
||||
<div className="flex flex-col gap-4 items-center justify-center w-full max-w-[339px]">
|
||||
<Link to="/register" className="w-full">
|
||||
<Link to="/become-a-member" className="w-full">
|
||||
<Button style={{ fontFamily: "'Nunito sans', sans-serif" }} className="bg-[#DDD8EB] hover:bg-white text-[#422268] rounded-full px-6 py-6 sm:py-[32px] text-base sm:text-lg font-medium w-full transition-colors">
|
||||
Become a Member
|
||||
</Button>
|
||||
|
||||
Reference in New Issue
Block a user