mirror of
https://github.com/umami-software/umami.git
synced 2026-02-06 21:57:16 +01:00
Account editing and change password.
This commit is contained in:
parent
b5cf9f8719
commit
b392a51676
23 changed files with 230 additions and 102 deletions
|
|
@ -4,10 +4,13 @@ import MenuLayout from 'components/layout/MenuLayout';
|
|||
import WebsiteSettings from './WebsiteSettings';
|
||||
import AccountSettings from './AccountSettings';
|
||||
import ProfileSettings from './ProfileSettings';
|
||||
|
||||
const menuOptions = ['Websites', 'Accounts', 'Profile'];
|
||||
import { useSelector } from 'react-redux';
|
||||
|
||||
export default function Settings() {
|
||||
const user = useSelector(state => state.user);
|
||||
|
||||
const menuOptions = ['Websites', user.is_admin && 'Accounts', 'Profile'];
|
||||
|
||||
return (
|
||||
<Page>
|
||||
<MenuLayout menu={menuOptions} selectedOption="Websites">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue