mirror of
https://github.com/umami-software/umami.git
synced 2026-02-17 11:05:36 +01:00
Refactored teams components.
This commit is contained in:
parent
0e144269ee
commit
be5592446a
25 changed files with 122 additions and 81 deletions
|
|
@ -11,7 +11,7 @@ import { ROLES } from 'lib/constants';
|
|||
export function ProfileSettings() {
|
||||
const { user } = useLogin();
|
||||
const { formatMessage, labels } = useMessages();
|
||||
const cloudMode = Boolean(process.env.cloudMode);
|
||||
const cloudMode = !!process.env.cloudMode;
|
||||
|
||||
if (!user) {
|
||||
return null;
|
||||
|
|
@ -24,7 +24,7 @@ export function ProfileSettings() {
|
|||
return formatMessage(labels.user);
|
||||
}
|
||||
if (value === ROLES.admin) {
|
||||
return formatMessage(labels.admin);
|
||||
return formatMessage(labels.administrator);
|
||||
}
|
||||
if (value === ROLES.viewOnly) {
|
||||
return formatMessage(labels.viewOnly);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue