diff --git a/src/components/MultiSelectActions.tsx b/src/components/MultiSelectActions.tsx index e690e5e..424d237 100644 --- a/src/components/MultiSelectActions.tsx +++ b/src/components/MultiSelectActions.tsx @@ -2,16 +2,10 @@ import { commands, TransactionResponse } from '@/bindings'; import { useErrors } from '@/hooks/useErrors'; import { toMojos } from '@/lib/utils'; import { useWalletState } from '@/state'; -import { - ChevronDown, - Flame, - SendIcon, - UserRoundMinus, - UserRoundPlus, -} from 'lucide-react'; -import { useState } from 'react'; -import { Trans } from '@lingui/react/macro'; import { t } from '@lingui/core/macro'; +import { Trans } from '@lingui/react/macro'; +import { ChevronDown, Flame, SendIcon, UserRoundPlus } from 'lucide-react'; +import { useState } from 'react'; import { AssignNftDialog } from './AssignNftDialog'; import ConfirmationDialog from './ConfirmationDialog'; import { FeeOnlyDialog } from './FeeOnlyDialog'; @@ -40,7 +34,6 @@ export function MultiSelectActions({ const [transferOpen, setTransferOpen] = useState(false); const [assignOpen, setAssignOpen] = useState(false); - const [unassignOpen, setUnassignOpen] = useState(false); const [burnOpen, setBurnOpen] = useState(false); const [response, setResponse] = useState(null); @@ -56,7 +49,7 @@ export function MultiSelectActions({ .finally(() => setTransferOpen(false)); }; - const onAssignSubmit = (profile: string, fee: string) => { + const onAssignSubmit = (profile: string | null, fee: string) => { commands .assignNftsToDid({ nft_ids: selected, @@ -68,18 +61,6 @@ export function MultiSelectActions({ .finally(() => setAssignOpen(false)); }; - const onUnassignSubmit = (fee: string) => { - commands - .assignNftsToDid({ - nft_ids: selected, - did_id: null, - fee: toMojos(fee, walletState.sync.unit.decimals), - }) - .then(setResponse) - .catch(addError) - .finally(() => setUnassignOpen(false)); - }; - const onBurnSubmit = (fee: string) => { commands .transferNfts({ @@ -129,20 +110,7 @@ export function MultiSelectActions({ > - Assign Profile - - - - { - e.stopPropagation(); - setUnassignOpen(true); - }} - > - - - Unassign Profile + Edit Profile @@ -176,7 +144,7 @@ export function MultiSelectActions({ This will bulk assign the NFTs to the selected profile. - - This will bulk unassign the NFTs from their profiles. - -