Skip to content

Commit

Permalink
fixed bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
flocky674 committed Oct 2, 2024
1 parent 649dcc9 commit 7072f83
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Root.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import { Route, HashRouter as Router, Routes } from 'react-router-dom';
import { HashRouter as Router, Routes, Route, Navigate } from 'react-router-dom';
import { App } from './App';
import { HomePage } from './pages/HomePage';
import { PhonePage } from './pages/PhonePage';
Expand All @@ -15,6 +15,7 @@ export const Root = () => (
<Routes>
<Route path="/" element={<App />}>
<Route index element={<HomePage />} />
<Route path="home" element={<Navigate to="/" replace />} />
<Route path="phones" element={<PhonePage />} />
<Route path="tablets" element={<TabletPage />} />
<Route path="accessories" element={<AccessoriesPage />} />
Expand Down

0 comments on commit 7072f83

Please sign in to comment.