Skip to content

Commit

Permalink
nit fix
Browse files Browse the repository at this point in the history
  • Loading branch information
NidhiKJha committed Aug 1, 2023
1 parent 6b67f2c commit bac8cd0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 15 deletions.
16 changes: 2 additions & 14 deletions ui/components/app/nft-default-image/toggle-ipfs-modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,22 +24,10 @@ export const ToggleIpfsModal = ({ onClose }) => {
const dispatch = useDispatch();

return (
<Modal
isOpen
onClose={() => {
onClose();
}}
className="toggle-ipfs-modal"
>
<Modal isOpen onClose={onClose} className="toggle-ipfs-modal">
<ModalOverlay />
<ModalContent>
<ModalHeader
onClose={() => {
onClose();
}}
>
{t('showNft')}
</ModalHeader>
<ModalHeader onClose={onClose}>{t('showNft')}</ModalHeader>
<Box className="toggle-ipfs-modal" marginTop={6}>
<Text variant={TextVariant.bodyMd} color={TextColor.textAlternative}>
{t('ipfsToggleModalDescriptionOne')}
Expand Down
2 changes: 1 addition & 1 deletion ui/pages/settings/security-tab/security-tab.component.js
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ export default class SecurityTab extends PureComponent {
};

const handleIpfsToggle = (url) => {
url === null || url.length < 1
url?.length < 1
? handleIpfsGatewayChange(IPFS_DEFAULT_GATEWAY_URL)
: handleIpfsGatewayChange('');
};
Expand Down

0 comments on commit bac8cd0

Please sign in to comment.