From b50f2d1c0e1036cae2e709190aa729fff97b25ec Mon Sep 17 00:00:00 2001 From: caturbgs Date: Thu, 16 Dec 2021 18:45:57 +0700 Subject: [PATCH] feat: adjust format in transaction history --- src/pages/Profile/Profile.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/pages/Profile/Profile.js b/src/pages/Profile/Profile.js index 27ec245..a0aa58e 100644 --- a/src/pages/Profile/Profile.js +++ b/src/pages/Profile/Profile.js @@ -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 ( + {format(parseISO(record.created_at), 'dd MMMM yyyy HH:mm')} + ) + }, }, ]