Email SMTP Fix
This commit is contained in:
19
src/App.js
19
src/App.js
@@ -5,6 +5,9 @@ import Landing from './pages/Landing';
|
||||
import Register from './pages/Register';
|
||||
import Login from './pages/Login';
|
||||
import VerifyEmail from './pages/VerifyEmail';
|
||||
import ForgotPassword from './pages/ForgotPassword';
|
||||
import ResetPassword from './pages/ResetPassword';
|
||||
import ChangePasswordRequired from './pages/ChangePasswordRequired';
|
||||
import Dashboard from './pages/Dashboard';
|
||||
import Profile from './pages/Profile';
|
||||
import Events from './pages/Events';
|
||||
@@ -22,6 +25,7 @@ import AdminApprovals from './pages/admin/AdminApprovals';
|
||||
import AdminPlans from './pages/admin/AdminPlans';
|
||||
import AdminLayout from './layouts/AdminLayout';
|
||||
import { AuthProvider, useAuth } from './context/AuthContext';
|
||||
import MemberRoute from './components/MemberRoute';
|
||||
|
||||
const PrivateRoute = ({ children, adminOnly = false }) => {
|
||||
const { user, loading } = useAuth();
|
||||
@@ -50,6 +54,13 @@ function App() {
|
||||
<Route path="/register" element={<Register />} />
|
||||
<Route path="/login" element={<Login />} />
|
||||
<Route path="/verify-email" element={<VerifyEmail />} />
|
||||
<Route path="/forgot-password" element={<ForgotPassword />} />
|
||||
<Route path="/reset-password" element={<ResetPassword />} />
|
||||
<Route path="/change-password-required" element={
|
||||
<PrivateRoute>
|
||||
<ChangePasswordRequired />
|
||||
</PrivateRoute>
|
||||
} />
|
||||
<Route path="/plans" element={<Plans />} />
|
||||
<Route path="/payment-success" element={<PaymentSuccess />} />
|
||||
<Route path="/payment-cancel" element={<PaymentCancel />} />
|
||||
@@ -65,14 +76,14 @@ function App() {
|
||||
</PrivateRoute>
|
||||
} />
|
||||
<Route path="/events" element={
|
||||
<PrivateRoute>
|
||||
<MemberRoute>
|
||||
<Events />
|
||||
</PrivateRoute>
|
||||
</MemberRoute>
|
||||
} />
|
||||
<Route path="/events/:id" element={
|
||||
<PrivateRoute>
|
||||
<MemberRoute>
|
||||
<EventDetails />
|
||||
</PrivateRoute>
|
||||
</MemberRoute>
|
||||
} />
|
||||
|
||||
<Route path="/admin" element={
|
||||
|
||||
Reference in New Issue
Block a user