Skip to content

Commit 6de034f

Browse files
committed
feat: description in send confirmation
1 parent 51c7df7 commit 6de034f

File tree

1 file changed

+21
-3
lines changed

1 file changed

+21
-3
lines changed

src/components/SendConfirmation.tsx

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ interface Props {
3434
sendSuccessHandler: (txid: string) => void;
3535
toDomain?: string;
3636
sendAll?: boolean;
37-
coinSelectionUtxos: Utxo[] | null;
37+
coinSelectionUtxos?: Utxo[] | null;
3838
}
3939

4040
const SendConfirmation: React.FC<Props> = props => {
@@ -148,7 +148,7 @@ const SendConfirmation: React.FC<Props> = props => {
148148
};
149149

150150
calculateFee();
151-
}, [amount, toAddress]);
151+
}, [amount, toAddress, sendAmount]);
152152

153153
return (
154154
<>
@@ -223,8 +223,26 @@ const SendConfirmation: React.FC<Props> = props => {
223223
textValue={toAddress}
224224
maxSizeInPixels={SCREEN_HEIGHT * 0.02}
225225
textStyle={styles.valueTitle}
226-
numberOfLines={3}
226+
numberOfLines={4}
227227
/>
228+
{label ? (
229+
<>
230+
<TranslateText
231+
textKey="description"
232+
domain="sendTab"
233+
maxSizeInPixels={SCREEN_HEIGHT * 0.02}
234+
textStyle={styles.valueSubtitle}
235+
numberOfLines={1}
236+
/>
237+
<TranslateText
238+
textValue={label}
239+
maxSizeInPixels={SCREEN_HEIGHT * 0.02}
240+
textStyle={styles.valueTitle}
241+
numberOfLines={4}
242+
/>
243+
</>
244+
) : null}
245+
228246
<TranslateText
229247
textKey="fee"
230248
domain="sendTab"

0 commit comments

Comments
 (0)