Add perfume detail routing, global navbar styles and chage radius on elements
This commit is contained in:
1 parent
a524a5d36a
commit
8140efb951
10 files changed
+523
-492
No files matched your search
@@ -1,14 +1,14 @@
|
||||
import { Routes, Route } from "react-router";
|
||||
import LandingPage from "./pages/LandingPage";
|
||||
import ProductDetailPage from "./components/ProductDetailPage";
|
||||
|
||||
function App() {
|
||||
const showDetailPage = true;
|
||||
|
||||
if (showDetailPage) {
|
||||
return <ProductDetailPage perfumeSlug="kalter-beton" />;
|
||||
}
|
||||
|
||||
return <LandingPage />;
|
||||
return (
|
||||
<Routes>
|
||||
<Route path="/" element={<LandingPage />} />
|
||||
<Route path="/duft/:perfumeSlug" element={<ProductDetailPage />} />
|
||||
</Routes>
|
||||
);
|
||||
}
|
||||
|
||||
export default App;
|
||||
Reference in new issue
Block a user