From 4059c194c5b0d9f7af648f95b8914b7859bda70a Mon Sep 17 00:00:00 2001 From: choibk Date: Mon, 19 Jan 2026 15:03:01 +0900 Subject: [PATCH] Refine navigation: Redirect Home to About --- src/App.jsx | 5 +++-- src/components/Navbar.jsx | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/App.jsx b/src/App.jsx index a2c72a4..5bc9bc1 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -1,8 +1,9 @@ -import { BrowserRouter as Router, Routes, Route } from 'react-router-dom'; +import { BrowserRouter as Router, Routes, Route, Navigate } from 'react-router-dom'; import { useEffect } from 'react'; import { useLocation } from 'react-router-dom'; import Layout from './components/Layout'; +// Home component is no longer used as index, redirected to About import Home from './pages/Home'; import About from './pages/About'; import ServiceDetail from './pages/ServiceDetail'; @@ -28,7 +29,7 @@ function App() { }> - } /> + } /> } /> } /> } /> diff --git a/src/components/Navbar.jsx b/src/components/Navbar.jsx index 8668f66..69f7df8 100644 --- a/src/components/Navbar.jsx +++ b/src/components/Navbar.jsx @@ -11,7 +11,7 @@ const Navbar = () => { return (