Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
tuminfei committed Apr 7, 2024
1 parent b6bb8ac commit fdce55d
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions app/routes/app.main_list_nfts.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ export async function action({ request, params }) {
console.log(nft_save);
}
}

return redirect(`/app/main_nfts/`);
}

Expand Down Expand Up @@ -90,7 +89,9 @@ export default function Index() {
const navigate = useNavigate();
const [active, setActive] = useState(false);
const [transfer_active, setTransferActive] = useState(false);
const [merchant_principal, setMerchantPrincipal] = useState(setting_merchant_principal);
const [merchant_principal, setMerchantPrincipal] = useState(
setting_merchant_principal
);
const handleChange = useCallback(() => setActive(!active), [active]);
const submit = useSubmit();

Expand All @@ -103,6 +104,7 @@ export default function Index() {
};

const handleIcTransfer = () => {
setTransferActive(true);
const data = {
action: "transfer_nft",
nft_info_id: tokenKeyState,
Expand Down Expand Up @@ -176,11 +178,16 @@ export default function Index() {
nft_info.owner
)
}
disabled={nft_info.owner == merchant_principal ? false : true }
disabled={nft_info.owner == merchant_principal ? false : true}
>
Transfer
</Button>
<Button variant="primary">Create Product</Button>
<Button
variant="primary"
disabled={nft_info.owner == merchant_principal ? false : true}
>
Create Product
</Button>
</ButtonGroup>
</LegacyStack>
</LegacyCard.Section>
Expand Down

0 comments on commit fdce55d

Please sign in to comment.