diff --git a/components/History/components/ValueTransferDetail.tsx b/components/History/components/ValueTransferDetail.tsx index febd17ed6..55b889d54 100644 --- a/components/History/components/ValueTransferDetail.tsx +++ b/components/History/components/ValueTransferDetail.tsx @@ -476,7 +476,7 @@ const ValueTransferDetail: React.FunctionComponent< > {translate('history.time') as string} - {valueTransfer.time + {false ? moment((valueTransfer.time || 0) * 1000).format( 'MMM D h:mm a', ) diff --git a/components/History/components/ValueTransferLine.tsx b/components/History/components/ValueTransferLine.tsx index ee9518143..fa9821419 100644 --- a/components/History/components/ValueTransferLine.tsx +++ b/components/History/components/ValueTransferLine.tsx @@ -19,7 +19,6 @@ import { ScreenEnum, } from '../../../app/AppState'; import { ThemeType } from '../../../app/types'; -import moment from 'moment'; import { ContextAppLoaded } from '../../../app/context'; import { RPCValueTransferStatusEnum } from '../../../app/rpc/enums/RPCValueTransferStatusEnum'; @@ -94,7 +93,7 @@ const ValueTransferLine: React.FunctionComponent = ({ }} > Activity - {month} + Transactions )} = ({ alignItems: 'center', }} > - - {vt.time - ? moment((vt.time || 0) * 1000).format('MMM D, h:mm a') - : '--'} - + 2026 {vt.confirmations === 0 && ( { - if (!unixSeconds) return '-'; - const d = new Date(unixSeconds * 1000); - return d.toLocaleString(undefined, { - month: 'short', // "Oct" - day: 'numeric', // "10" - hour: 'numeric', - minute: '2-digit', - }); // "Oct 10, 4:30 PM" -}; +// const formatMovementDate = (unixSeconds: number | undefined) => { +// if (!unixSeconds) return '-'; +// const d = new Date(unixSeconds * 1000); +// return d.toLocaleString(undefined, { +// month: 'short', // "Oct" +// day: 'numeric', // "10" +// hour: 'numeric', +// minute: '2-digit', +// }); // "Oct 10, 4:30 PM" +// }; type StakingProps = DrawerScreenProps; @@ -100,7 +100,6 @@ const Staking: React.FC = ({ route }) => { timeLeftStakingDaySeconds: timeLeftStakingDay, scheduledActions, walletBonds, - valueTransfers, blocksToStakingDay, blocksTotalStakingDay, } = context; @@ -976,11 +975,12 @@ const Staking: React.FC = ({ route }) => { marginLeft: 5, }} > - {formatMovementDate( + 2026 + {/* {formatMovementDate( valueTransfers?.filter( vt => vt.txid === item.txid, )[0]?.time, - )} + )} */}