mirror of
https://github.com/umami-software/umami.git
synced 2026-02-12 08:37:13 +01:00
add page titles
This commit is contained in:
parent
b39ef68372
commit
3039ad9315
12 changed files with 39 additions and 12 deletions
|
|
@ -2,17 +2,19 @@ import AppLayout from 'components/layout/AppLayout';
|
|||
import SettingsLayout from 'components/layout/SettingsLayout';
|
||||
import UserSettings from 'components/pages/settings/users/UserSettings';
|
||||
import { useRouter } from 'next/router';
|
||||
import useMessages from 'hooks/useMessages';
|
||||
|
||||
export default function TeamDetailPage({ disabled }) {
|
||||
const router = useRouter();
|
||||
const { id } = router.query;
|
||||
const { formatMessage, labels } = useMessages();
|
||||
|
||||
if (!id || disabled) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return (
|
||||
<AppLayout>
|
||||
<AppLayout title={formatMessage(labels.users)}>
|
||||
<SettingsLayout>
|
||||
<UserSettings userId={id} />
|
||||
</SettingsLayout>
|
||||
|
|
|
|||
|
|
@ -1,14 +1,16 @@
|
|||
import AppLayout from 'components/layout/AppLayout';
|
||||
import SettingsLayout from 'components/layout/SettingsLayout';
|
||||
import UsersList from 'components/pages/settings/users/UsersList';
|
||||
import useMessages from 'hooks/useMessages';
|
||||
|
||||
export default function UsersPage({ disabled }) {
|
||||
const { formatMessage, labels } = useMessages();
|
||||
if (disabled) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return (
|
||||
<AppLayout>
|
||||
<AppLayout title={formatMessage(labels.users)}>
|
||||
<SettingsLayout>
|
||||
<UsersList />
|
||||
</SettingsLayout>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue