mirror of
https://github.com/umami-software/umami.git
synced 2026-02-14 01:25:37 +01:00
Added checks for CLOUD_MODE.
This commit is contained in:
parent
5657a64c77
commit
3ac560dc0f
24 changed files with 175 additions and 60 deletions
|
|
@ -4,14 +4,16 @@ import PageHeader from 'components/layout/PageHeader';
|
|||
import ProfileDetails from './ProfileDetails';
|
||||
import PasswordChangeButton from './PasswordChangeButton';
|
||||
import { labels } from 'components/messages';
|
||||
import useConfig from 'hooks/useConfig';
|
||||
|
||||
export default function ProfileSettings() {
|
||||
const { formatMessage } = useIntl();
|
||||
const { cloudMode } = useConfig();
|
||||
|
||||
return (
|
||||
<Page>
|
||||
<PageHeader title={formatMessage(labels.profile)}>
|
||||
<PasswordChangeButton />
|
||||
{!cloudMode && <PasswordChangeButton />}
|
||||
</PageHeader>
|
||||
<ProfileDetails />
|
||||
</Page>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue