Updated code
This commit is contained in:
@@ -3,6 +3,7 @@ import { useNavigate } from 'react-router-dom';
|
||||
|
||||
import { tokenService } from '../services/TokenService';
|
||||
import { userApi } from '../api/loginApi';
|
||||
import { APP_NAME } from '../constants/app';
|
||||
|
||||
import './ProfileForm.css';
|
||||
|
||||
@@ -224,7 +225,7 @@ const ProfileForm = () => {
|
||||
{/* Navbar */}
|
||||
<nav className="dashboard-nav">
|
||||
<div className="nav-logo">
|
||||
<span className="logo-text">Dashboard</span>
|
||||
<span className="logo-text">{APP_NAME}</span>
|
||||
</div>
|
||||
<div className="nav-links">
|
||||
<button
|
||||
@@ -233,12 +234,6 @@ const ProfileForm = () => {
|
||||
>
|
||||
Dashboard
|
||||
</button>
|
||||
<button
|
||||
className={`nav-link ${activeView === 'settings' ? 'active' : ''}`}
|
||||
onClick={() => handleNavClick('settings')}
|
||||
>
|
||||
Settings
|
||||
</button>
|
||||
<button
|
||||
className={`nav-link ${activeView === 'profile' ? 'active' : ''}`}
|
||||
onClick={() => handleNavClick('profile')}
|
||||
|
||||
Reference in New Issue
Block a user