@@ -18,6 +18,7 @@ const validationSchema = Yup.object({
1818 rootAddress : Yup . string ( ) . required ( ) ,
1919 walletPassphrase : Yup . string ( ) . required ( ) ,
2020 recoveryDestination : Yup . string ( ) . required ( ) ,
21+ reserveWithdrawal : Yup . boolean ( ) ,
2122} ) . required ( ) ;
2223
2324export type RippleFormProps = {
@@ -39,6 +40,7 @@ export function RippleForm({ onSubmit }: RippleFormProps) {
3940 walletPassphrase : '' ,
4041 recoveryDestination : '' ,
4142 krsProvider : '' ,
43+ reserveWithdrawal : false ,
4244 } ,
4345 validationSchema,
4446 } ) ;
@@ -109,6 +111,26 @@ export function RippleForm({ onSubmit }: RippleFormProps) {
109111 Width = "fill"
110112 />
111113 </ div >
114+ < div className = "tw-mb-4 tw-flex tw-items-start tw-gap-2" >
115+ < input
116+ type = "checkbox"
117+ id = "reserveWithdrawal"
118+ name = "reserveWithdrawal"
119+ checked = { formik . values . reserveWithdrawal }
120+ onChange = { formik . handleChange }
121+ className = "tw-mt-1"
122+ />
123+ < label htmlFor = "reserveWithdrawal" className = "tw-text-sm" >
124+ < span className = "tw-font-semibold" > Withdraw full balance including reserve (AccountDelete)</ span >
125+ < br />
126+ < span className = "tw-text-gray-500" >
127+ Permanently deletes the XRP account and sends the entire balance — including the 10 XRP
128+ base reserve — to the destination. The account cannot be reused afterwards. Requires: no
129+ trustlines with non-zero balances, no open offers/escrows/checks, and the account must be
130+ at least 256 ledgers old. A 2 XRP deletion fee is charged by the network.
131+ </ span >
132+ </ label >
133+ </ div >
112134 < div className = "tw-flex tw-flex-col-reverse sm:tw-justify-between sm:tw-flex-row tw-gap-1 tw-mt-4" >
113135 < Button Tag = { Link } to = "/" Variant = "secondary" Width = "hug" >
114136 Cancel
0 commit comments