diff --git a/src/components/views/UserView.tsx b/src/components/views/UserView.tsx index 51156f4..fbfeffe 100755 --- a/src/components/views/UserView.tsx +++ b/src/components/views/UserView.tsx @@ -1,4 +1,4 @@ -import { memo } from 'react' +import { HTMLProps, memo } from 'react' import { Tooltip } from 'antd' import { UserOutlined } from '@ant-design/icons' @@ -6,33 +6,58 @@ import { UserDto } from '@api' import { Grid, GridItem } from '@components/Grid' import { CompanyView } from './CompanyView' -export type UserViewProps = { - user?: UserDto +export type UserViewProps = HTMLProps & { + user?: UserDto } -export const UserView = memo(({ user }) => user ? ( - - Фамилия: - {user?.surname} +export const UserView = memo(({ user, ...other }) => + user ? ( + + + Фамилия: + + + {user?.surname} + - Имя: - {user?.name} + + Имя: + + + {user?.name} + - Отчество: - {user?.patronymic} + + Отчество: + + + {user?.patronymic} + - Компания: - - - - - )}> - - {user?.login} - -) : ( - - -)) + + Компания: + + + + + + } + > + + + {user?.login} + + + ) : ( + + + + --- + + + ) +) export default UserView