Commit fab6678
committed
frontend: refactor message and remove small and title props
Title was never used, and small only in one place (Send) for the
noFeeTargets warning message.
Replaced small font in send View by using `<label>` element (most
other text elements use Label element on that page, so it shows
the smaller font size.
Tested by patching the api endpoint with:
```diff
diff --git a/frontends/web/src/api/account.ts b/frontends/web/src/api/account.ts
index cbef324..2d26f3347 100644
--- a/frontends/web/src/api/account.ts
+++ b/frontends/web/src/api/account.ts
@@ -20,6 +20,7 @@ import type { TDetailStatus } from './bitsurance';
import type { SuccessResponse } from './response';
import type { NonEmptyArray } from '@/utils/types';
import { apiGet, apiPost } from '@/utils/request';
+// import { FeeTargets } from '@/routes/account/send/feetargets';
export type NativeCoinCode = 'btc' | 'tbtc' | 'rbtc' | 'ltc' | 'tltc' | 'eth' | 'sepeth';
@@ -379,7 +380,7 @@ export type TFeeTargetList = {
};
export const getFeeTargetList = (code: AccountCode): Promise<TFeeTargetList> => {
- return apiGet(`account/${code}/fee-targets`);
+ return apiGet(`account/${code}/fee-targets`).then(() => ({ defaultFeeTarget: 'custom', feeTargets: [] }));
};
```1 parent fb9a3ae commit fab6678
File tree
3 files changed
+4
-21
lines changed- frontends/web/src
- components/message
- routes/account/send
3 files changed
+4
-21
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | 25 | | |
35 | 26 | | |
36 | 27 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
56 | | - | |
57 | 55 | | |
58 | 56 | | |
59 | 57 | | |
| |||
63 | 61 | | |
64 | 62 | | |
65 | 63 | | |
66 | | - | |
67 | | - | |
68 | 64 | | |
69 | 65 | | |
70 | 66 | | |
| |||
76 | 72 | | |
77 | 73 | | |
78 | 74 | | |
79 | | - | |
80 | 75 | | |
81 | 76 | | |
82 | 77 | | |
83 | 78 | | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | 79 | | |
90 | 80 | | |
91 | 81 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
193 | 193 | | |
194 | 194 | | |
195 | 195 | | |
196 | | - | |
197 | | - | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
198 | 200 | | |
199 | 201 | | |
200 | 202 | | |
| |||
0 commit comments