Skip to content

Commit

Permalink
Fix merge conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
guanquann committed Sep 21, 2024
2 parents d4d236b + 2176d08 commit 25acf98
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
10 changes: 6 additions & 4 deletions frontend/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,12 @@ function App() {
<BrowserRouter>
<Routes>
<Route path="/" element={<Layout />}>
<Route path="/questions" element={<>question page list</>} />
<Route path="/questions/new" element={<NewQuestion />} />
<Route path="/questions/:questionId" element={<QuestionDetail />} />
<Route path="/questions/:questionId/edit" element={<QuestionEdit />} />
<Route path="questions">
<Route index element={<>question page list</>} />
<Route path="new" element={<NewQuestion />} />
<Route path=":questionId" element={<QuestionDetail />} />
<Route path=":questionId/edit" element={<QuestionEdit />} />
</Route>
<Route path="*" element={<PageNotFound />} />
</Route>
</Routes>
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/Navbar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ type NavbarItem = { label: string; link: string };
type NavbarProps = { navbarItems?: Array<NavbarItem> };

const Navbar: FunctionComponent<NavbarProps> = (props: NavbarProps) => {
const { navbarItems = [{ label: "Questions", link: "/" }] } = props;
const { navbarItems = [{ label: "Questions", link: "/questions" }] } = props;
const navigate = useNavigate();

return (
Expand Down

0 comments on commit 25acf98

Please sign in to comment.