seo update
This commit is contained in:
@@ -21,8 +21,8 @@ export default function BottomNav() {
|
||||
{/* Write */}
|
||||
<button
|
||||
type="button"
|
||||
className={`bottom-nav-btn ${isActive('/') ? 'bottom-nav-btn-active' : ''}`}
|
||||
onClick={() => navigate('/')}
|
||||
className={`bottom-nav-btn ${isActive('/write') ? 'bottom-nav-btn-active' : ''}`}
|
||||
onClick={() => navigate('/write')}
|
||||
aria-label="Write"
|
||||
>
|
||||
{/* Pencil / edit icon */}
|
||||
|
||||
@@ -16,7 +16,7 @@ export function ProtectedRoute({ children }: Props) {
|
||||
}
|
||||
|
||||
if (!user) {
|
||||
return <Navigate to="/login" state={{ from: location }} replace />
|
||||
return <Navigate to="/" state={{ from: location }} replace />
|
||||
}
|
||||
|
||||
return <>{children}</>
|
||||
|
||||
Reference in New Issue
Block a user