Skip to content

Commit

Permalink
Refactor date formatting in StakingData component
Browse files Browse the repository at this point in the history
  • Loading branch information
doerfli committed Mar 28, 2024
1 parent f724c1d commit 9cffd27
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/staking_dashboard/staking_data.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,19 +76,19 @@ export default function StakingData() {
{
field: 'stakingStarted',
headerName: 'Started',
valueFormatter: (params: any) => (moment.unix(params.value)).format('DD/MMM/YYYY'),
valueFormatter: (value: any) => (moment.unix(value)).format('DD/MMM/YYYY'),
flex: 0.7,
},
{
field: 'updatedAt',
headerName: 'Updated',
valueFormatter: (params: any) => (moment.unix(params.value)).format('DD/MMM/YYYY'),
valueFormatter: (value: any) => (moment.unix(value)).format('DD/MMM/YYYY'),
flex: 0.7,
},
{
field: 'unstakingAfter',
headerName: 'Locked until',
valueFormatter: (params: any) => (moment.unix(params.value)).format('DD/MMM/YYYY'),
valueFormatter: (value: any) => (moment.unix(value)).format('DD/MMM/YYYY'),
flex: 0.7,
}
];
Expand Down

0 comments on commit 9cffd27

Please sign in to comment.