Skip to content

Commit

Permalink
conflict: fixed 2
Browse files Browse the repository at this point in the history
  • Loading branch information
priyanshuverma-dev committed Nov 8, 2024
1 parent 512982f commit af95d3e
Showing 1 changed file with 28 additions and 19 deletions.
47 changes: 28 additions & 19 deletions client/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import ChatbotViewPage from "./pages/ChatbotView";
import MyImagesPage from "./pages/MyImages";
import MyChatbotsPage from "./pages/MyChatbots";
import { AnimatePresence } from "framer-motion";
import CustomSwitch from "./lib/custom-switch";

const queryClient = new QueryClient();

Expand All @@ -42,27 +43,35 @@ function App() {
<Modals />
<Toaster />
<AnimatePresence mode="wait">
<Routes location={location} key={location.pathname}>
<Route path="*" element={<NotFound />} />
<Route path="/" element={<LandingPage />} />
<Route path="/login" element={<LoginPage />} />
<Route path="/signup" element={<SignupPage />} />
<Route path="/anonymous" element={<AnonymousPage />} />
<CustomSwitch>
<Routes location={location} key={location.pathname}>
<Route path="*" element={<NotFound />} />
<Route path="/" element={<LandingPage />} />
<Route path="/login" element={<LoginPage />} />
<Route path="/signup" element={<SignupPage />} />
<Route path="/anonymous" element={<AnonymousPage />} />

<Route element={<ProtectedRoute />}>
<Route path="/chatbot/:id" element={<ChatbotPage />} />
<Route path="/imagine" element={<ImaginePage />} />
<Route element={<ProtectedRoute />}>
<Route path="/chatbot/:id" element={<ChatbotPage />} />
<Route path="/imagine" element={<ImaginePage />} />

<Route path="/dashboard" element={<DashboardPage />} />
<Route path="/hub" element={<HubPage />} />
<Route path="/hub/:chatbotId" element={<ChatbotViewPage />} />
<Route path="/profile" element={<ProfilePage />} />
<Route path="/profile/:username" element={<ProfilePage />} />
<Route path="/leaderboard" element={<LeaderboardPage />} />
<Route path="/images" element={<MyImagesPage />} />
<Route path="/chatbots" element={<MyChatbotsPage />} />
</Route>
</Routes>
<Route path="/dashboard" element={<DashboardPage />} />
<Route path="/hub" element={<HubPage />} />
<Route
path="/hub/:chatbotId"
element={<ChatbotViewPage />}
/>
<Route path="/profile" element={<ProfilePage />} />
<Route
path="/profile/:username"
element={<ProfilePage />}
/>
<Route path="/leaderboard" element={<LeaderboardPage />} />
<Route path="/images" element={<MyImagesPage />} />
<Route path="/chatbots" element={<MyChatbotsPage />} />
</Route>
</Routes>
</CustomSwitch>
</AnimatePresence>
</AuthProvider>
</CopilotKit>
Expand Down

0 comments on commit af95d3e

Please sign in to comment.