mirror of
https://github.com/umami-software/umami.git
synced 2026-02-14 17:45:38 +01:00
Refactored intl messages.
This commit is contained in:
parent
fbccf4d3af
commit
7725b5c129
44 changed files with 558 additions and 485 deletions
|
|
@ -1,13 +1,10 @@
|
|||
import { Breadcrumbs, Item } from 'react-basics';
|
||||
import { defineMessages, useIntl } from 'react-intl';
|
||||
import { useIntl } from 'react-intl';
|
||||
import Page from 'components/layout/Page';
|
||||
import PageHeader from 'components/layout/PageHeader';
|
||||
import ProfileDetails from './ProfileDetails';
|
||||
import PasswordChangeButton from './PasswordChangeButton';
|
||||
|
||||
const messages = defineMessages({
|
||||
profile: { id: 'label.profile', defaultMessage: 'Profile' },
|
||||
});
|
||||
import { labels } from 'components/messages';
|
||||
|
||||
export default function ProfileSettings() {
|
||||
const { formatMessage } = useIntl();
|
||||
|
|
@ -16,7 +13,7 @@ export default function ProfileSettings() {
|
|||
<Page>
|
||||
<PageHeader>
|
||||
<Breadcrumbs>
|
||||
<Item>{formatMessage(messages.profile)}</Item>
|
||||
<Item>{formatMessage(labels.profile)}</Item>
|
||||
</Breadcrumbs>
|
||||
<PasswordChangeButton />
|
||||
</PageHeader>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue