mirror of
https://github.com/maelgangloff/domain-watchdog.git
synced 2025-12-29 16:15:04 +00:00
fix: ttag translation
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import React, {useEffect, useState} from "react";
|
||||
import {Card, Flex, Skeleton, Typography} from "antd";
|
||||
import {getUser, User} from "../../utils/api";
|
||||
import {t} from 'ttag'
|
||||
|
||||
export default function UserPage() {
|
||||
|
||||
@@ -12,12 +13,12 @@ export default function UserPage() {
|
||||
|
||||
return <Skeleton loading={user === null} active>
|
||||
<Flex gap="middle" align="center" justify="center" vertical>
|
||||
<Card title="My Account">
|
||||
<Card title={t`My Account`}>
|
||||
<Typography.Paragraph>
|
||||
Username : {user?.email}
|
||||
{t`Username`} : {user?.email}
|
||||
</Typography.Paragraph>
|
||||
<Typography.Paragraph>
|
||||
Roles : {user?.roles.join(',')}
|
||||
{t`Roles`} : {user?.roles.join(',')}
|
||||
</Typography.Paragraph>
|
||||
</Card>
|
||||
</Flex>
|
||||
|
||||
Reference in New Issue
Block a user