Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion components/History/components/ValueTransferDetail.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,7 @@ const ValueTransferDetail: React.FunctionComponent<
>
<FadeText>{translate('history.time') as string}</FadeText>
<RegText>
{valueTransfer.time
{false
? moment((valueTransfer.time || 0) * 1000).format(
'MMM D h:mm a',
)
Expand Down
9 changes: 2 additions & 7 deletions components/History/components/ValueTransferLine.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -94,7 +93,7 @@ const ValueTransferLine: React.FunctionComponent<ValueTransferLineProps> = ({
}}
>
<RegText>Activity</RegText>
<FadeText>{month}</FadeText>
<FadeText>Transactions</FadeText>
</View>
)}
<TouchableOpacity
Expand Down Expand Up @@ -188,11 +187,7 @@ const ValueTransferLine: React.FunctionComponent<ValueTransferLineProps> = ({
alignItems: 'center',
}}
>
<FadeText>
{vt.time
? moment((vt.time || 0) * 1000).format('MMM D, h:mm a')
: '--'}
</FadeText>
<FadeText>2026</FadeText>
{vt.confirmations === 0 && (
<View
style={{
Expand Down
26 changes: 13 additions & 13 deletions components/Staking/Staking.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,16 +68,16 @@ type Finalizer = {
tag: string;
};

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"
};
// 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<MainTabParamList, RouteEnum.StakingHome>;

Expand All @@ -100,7 +100,6 @@ const Staking: React.FC<StakingProps> = ({ route }) => {
timeLeftStakingDaySeconds: timeLeftStakingDay,
scheduledActions,
walletBonds,
valueTransfers,
blocksToStakingDay,
blocksTotalStakingDay,
} = context;
Expand Down Expand Up @@ -976,11 +975,12 @@ const Staking: React.FC<StakingProps> = ({ route }) => {
marginLeft: 5,
}}
>
{formatMovementDate(
2026
{/* {formatMovementDate(
valueTransfers?.filter(
vt => vt.txid === item.txid,
)[0]?.time,
)}
)} */}
</Text>
</View>
</View>
Expand Down
Loading