Skip to content
This repository has been archived by the owner on Nov 18, 2024. It is now read-only.

Commit

Permalink
Update comment.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
khylpe committed May 8, 2024
1 parent 3c92cda commit 7f81cfe
Showing 1 changed file with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Comment as CommentType } from "@/types/comment"
import { Empty, Input, Button, List, message, Card, Badge, Avatar, Popconfirm, Tooltip, Typography, Popover } from 'antd';
const { Text, Link } = Typography;
import { UserOutlined, DeleteOutlined } from '@ant-design/icons';
import { Button, message, Card, Avatar, Popconfirm, Tooltip, Typography } from 'antd';
const { Text } = Typography;
import { UserOutlined } from '@ant-design/icons';
import dayjs from 'dayjs';
import 'dayjs/locale/fr';
dayjs.locale('fr');
Expand Down Expand Up @@ -125,12 +125,12 @@ export default function Comment({ comment, displayAccept, displayRefuse }: { com

return (
<Card
title={<div className='space-x-3'><Avatar src={comment.user.imgURL} style={{ height: 35, width: 35 }} icon={<UserOutlined />} /><Text>{comment.user.firstName}</Text><Text type='secondary'>{dayjs().to(dayjs(comment.createAt, "YYYY-MM-DD hh:mm:ss"))}</Text></div>}
className="w-fit max-w-full"
actions={actions}
>
<pre style={{ whiteSpace: 'pre-wrap', wordWrap: 'break-word' }}>{comment.comment}</pre>
</Card>
title={<div className='space-x-3'><Avatar src={comment.user.imgURL} style={{ height: 35, width: 35 }} icon={<UserOutlined />} /><Text>{comment.user.firstName}</Text><Text type='secondary'>{dayjs().to(dayjs(comment.createAt, "YYYY-MM-DD hh:mm:ss"))}</Text></div>}
className="w-fit max-w-full"
actions={actions}
>
<pre style={{ whiteSpace: 'pre-wrap', wordWrap: 'break-word' }}>{comment.comment}</pre>
</Card>
)
}

Expand Down

0 comments on commit 7f81cfe

Please sign in to comment.