moved edit profile in center window
This commit is contained in:
@@ -4,8 +4,8 @@ import {NAV_BOTTOM, NAV_ITEMS} from "../config/feedConstants";
|
||||
import {NavIcons} from "./icons/NavIcons";
|
||||
import Profile from "./profile/Profile";
|
||||
|
||||
export default function Sidebar({ open, activeNav, onClose, onNavClick }) {
|
||||
const [profileData, setProfileData] = useState({
|
||||
export default function Sidebar({ open, activeNav, onClose, onNavClick, onEditProfile }) {
|
||||
const [profileData] = useState({
|
||||
firstName: "Иван",
|
||||
lastName: "Иванов",
|
||||
email: "ivan@example.com",
|
||||
@@ -48,9 +48,9 @@ export default function Sidebar({ open, activeNav, onClose, onNavClick }) {
|
||||
);
|
||||
})}
|
||||
<div className="f-sb-divider" />
|
||||
<Profile data={profileData} />
|
||||
<Profile data={profileData} onEdit={onEditProfile} />
|
||||
</div>
|
||||
</div>
|
||||
</>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user