Skip to content

Commit ed6efa6

Browse files
committed
Merge branch 'frontend-refactor-send'
2 parents 01d9fa5 + 606bb7b commit ed6efa6

File tree

3 files changed

+378
-415
lines changed

3 files changed

+378
-415
lines changed

frontends/web/src/api/account.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright 2021-2024 Shift Crypto AG
2+
* Copyright 2021-2025 Shift Crypto AG
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -364,7 +364,7 @@ export const sendTx = (
364364
return apiPost(`account/${code}/sendtx`, txNote);
365365
};
366366

367-
export type FeeTargetCode = 'custom' | 'low' | 'economy' | 'normal' | 'high';
367+
export type FeeTargetCode = 'custom' | 'low' | 'economy' | 'normal' | 'high' | 'mHour' | 'mHalfHour' | 'mFastest';
368368

369369
export interface IProposeTxData {
370370
address?: string;

frontends/web/src/routes/account/send/feetargets.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
* Copyright 2018 Shift Devices AG
3-
* Copyright 2021-2024 Shift Crypto AG
3+
* Copyright 2021-2025 Shift Crypto AG
44
*
55
* Licensed under the Apache License, Version 2.0 (the "License");
66
* you may not use this file except in compliance with the License.
@@ -91,13 +91,16 @@ export const FeeTargets = ({
9191
});
9292
}
9393
setOptions(options);
94+
if (feeTarget) {
95+
return;
96+
}
9497
setFeeTarget(feeTargets.defaultFeeTarget);
9598
onFeeTargetChange(feeTargets.defaultFeeTarget);
9699
if (feeTargets.feeTargets.length === 0) {
97100
setNoFeeTargets(true);
98101
}
99102
focusInput();
100-
}, [t, feeTargets, focusInput, accountCode, config, onFeeTargetChange, disabled]);
103+
}, [t, feeTarget, feeTargets, focusInput, accountCode, config, onFeeTargetChange, disabled]);
101104

102105
const handleFeeTargetChange = (event: React.SyntheticEvent) => {
103106
const target = event.target as HTMLSelectElement;

0 commit comments

Comments
 (0)