Skip to content

Commit

Permalink
Merge pull request #646 from Psychedelic/fix/update-with-dev
Browse files Browse the repository at this point in the history
Fix/update with dev
  • Loading branch information
tomiir authored Oct 20, 2022
2 parents b00d8e8 + bde3280 commit 75f56ec
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 6 deletions.
1 change: 1 addition & 0 deletions source/Background/Keyring/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ export const HANDLER_TYPES = {
GET_CURRENT_NETWORK: 'get-current-network',
IMPORT_PEM_ACCOUNT: 'import-pem-account',
REMOVE_PEM_ACCOUNT: 'remove-pem-account',
REMOVE_CUSTOM_TOKEN: 'remove-custom-token',
};

export const getKeyringErrorMessage = (type) => ({
Expand Down
20 changes: 16 additions & 4 deletions source/components/AssetItem/index.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { useEffect, useState } from 'react';
import React, { useState } from 'react';
import NumberFormat from 'react-number-format';
import PropTypes from 'prop-types';
import Typography from '@material-ui/core/Typography';
Expand All @@ -8,7 +8,6 @@ import clsx from 'clsx';
import Skeleton from 'react-loading-skeleton';
import 'react-loading-skeleton/dist/skeleton.css';

import { TOKENS } from '@shared/constants/currencies';
import RefreshIcon from '@assets/icons/blue-refresh.png';
import DeleteIcon from '@assets/icons/delete.svg';
import TokenIcon from '../TokenIcon';
Expand Down Expand Up @@ -67,7 +66,13 @@ const AssetItem = ({

return (
<div
className={clsx(classes.root, failed && classes.failedContainer, shouldRemove && classes.removeAnimation)}
className={
clsx(
classes.root,
failed && classes.failedContainer,
shouldRemove && classes.removeAnimation,
)
}
onMouseOver={handleMouseOver}
onAnimationEnd={removeAsset}
onMouseOut={handleMouseOut}
Expand Down Expand Up @@ -139,7 +144,13 @@ const AssetItem = ({
)}
{ !failed && !loading && (
<div
className={clsx(classes.deleteToken, !value && classes.deleteTokenMoveRight, isHovering && classes.deleteTokenActive)}
className={
clsx(
classes.deleteToken,
!value && classes.deleteTokenMoveRight,
isHovering && classes.deleteTokenActive,
)
}
>
<img
onClick={() => setOpenDelete(true)}
Expand Down Expand Up @@ -170,4 +181,5 @@ AssetItem.propTypes = {
failed: PropTypes.bool,
assetNameTestId: PropTypes.string,
removeAsset: PropTypes.func.isRequired,
protectedAsset: PropTypes.bool.isRequired,
};
1 change: 1 addition & 0 deletions source/components/Profile/index.jsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable max-len */
import React, { useState, useEffect } from 'react';
import MenuList from '@material-ui/core/MenuList';
import Button from '@material-ui/core/Button';
Expand Down
2 changes: 0 additions & 2 deletions source/redux/wallet.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,6 @@ export const {
setTransactionsLoading,
setAssets,
setAssetsLoading,
setCollections,
setCollectionsLoading,
blockNFTFetch,
} = walletSlice.actions;

Expand Down

0 comments on commit 75f56ec

Please sign in to comment.