Skip to content

Commit

Permalink
Add new input to assets fee structure drawer
Browse files Browse the repository at this point in the history
  • Loading branch information
kattylucy committed Jun 19, 2024
1 parent b24bc0d commit 02f7a57
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions centrifuge-app/src/components/PoolFees/EditFeesDrawer.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
import { AddFee, PoolMetadata, Rate } from '@centrifuge/centrifuge-js'
import { useCentrifugeTransaction } from '@centrifuge/centrifuge-react'
import {
AddressInput,
Box,
Button,
Drawer,
Flex,
Grid,
IconButton,
IconCopy,
IconMinusCircle,
IconPlusCircle,
NumberInput,
Expand All @@ -21,7 +20,6 @@ import { Field, FieldArray, FieldProps, Form, FormikProvider, useFormik } from '
import React from 'react'
import { useParams } from 'react-router'
import { Dec } from '../../utils/Decimal'
import { copyToClipboard } from '../../utils/copyToClipboard'
import { formatPercentage } from '../../utils/formatting'
import { usePoolAdmin, useSuitableAccounts } from '../../utils/usePermissions'
import { usePool, usePoolFees, usePoolMetadata } from '../../utils/usePools'
Expand Down Expand Up @@ -254,18 +252,10 @@ export const EditFeesDrawer = ({ onClose, isOpen }: ChargeFeesProps) => {
>
{({ field, meta }: FieldProps) => {
return (
<TextInput
<AddressInput
{...field}
disabled={!poolAdmin || updateFeeTxLoading}
label="Receiving address"
symbol={
<IconButton
onClick={() => copyToClipboard(values.receivingAddress)}
title="Copy address to clipboard"
>
<IconCopy />
</IconButton>
}
errorMessage={(meta.touched && meta.error) || ''}
/>
)
Expand Down

0 comments on commit 02f7a57

Please sign in to comment.