feat: adjust format in transaction history
This commit is contained in:
parent
488f76e662
commit
b50f2d1c0e
|
@ -5,6 +5,7 @@ import {LINKS} from "../../routes/app";
|
|||
import {useStore} from "../../utils/useStore";
|
||||
import {observer} from "mobx-react-lite";
|
||||
import {FilterOutlined} from "@ant-design/icons";
|
||||
import {format, parseISO} from "date-fns";
|
||||
|
||||
const {Title, Text} = Typography;
|
||||
|
||||
|
@ -47,6 +48,11 @@ export const Profile = observer(() => {
|
|||
title: 'Transaction Date',
|
||||
dataIndex: 'created_at',
|
||||
key: 'created_at',
|
||||
render: (text, record) => {
|
||||
return (
|
||||
<Text>{format(parseISO(record.created_at), 'dd MMMM yyyy HH:mm')}</Text>
|
||||
)
|
||||
},
|
||||
},
|
||||
]
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user