From 8125f7f08b021939fdf87b673001e942bb15f7cb Mon Sep 17 00:00:00 2001 From: Christian Laino Date: Thu, 30 Sep 2021 19:45:04 -0300 Subject: [PATCH] Fixs request connect styles (#241) * new whitelist styles * fixs * removed margin --- .../components/AllowAgent/styles.js | 1 + source/redux/wallet.js | 24 ++++++++++++------- .../ui/CanisterInfo/components/Item/styles.js | 1 - 3 files changed, 16 insertions(+), 10 deletions(-) diff --git a/source/Pages/Notification/components/AllowAgent/styles.js b/source/Pages/Notification/components/AllowAgent/styles.js index a3d05aea..eda7993f 100644 --- a/source/Pages/Notification/components/AllowAgent/styles.js +++ b/source/Pages/Notification/components/AllowAgent/styles.js @@ -29,5 +29,6 @@ export default makeStyles({ justifyContent: 'center', alignItems: 'center', marginBottom: 20, + cursor: 'pointer', }, }); diff --git a/source/redux/wallet.js b/source/redux/wallet.js index 48d08be3..bc29ac6f 100644 --- a/source/redux/wallet.js +++ b/source/redux/wallet.js @@ -1,7 +1,10 @@ import { createSlice } from '@reduxjs/toolkit'; import { ACTIVITY_STATUS, ACTIVITY_TYPES } from '@shared/constants/activity'; import { - formatAssetBySymbol, formatAssets, TOKENS, TOKEN_IMAGES, + formatAssetBySymbol, + formatAssets, + TOKENS, + TOKEN_IMAGES, } from '@shared/constants/currencies'; /* eslint-disable no-param-reassign */ @@ -40,7 +43,9 @@ export const walletSlice = createSlice({ setTransactions: (state, action) => { const mapTransaction = (trx) => { const asset = formatAssetBySymbol( - trx?.amount, trx?.currency?.symbol, action?.payload?.icpPrice, + trx?.amount, + trx?.currency?.symbol, + action?.payload?.icpPrice, ); const transaction = { ...asset, @@ -70,7 +75,10 @@ export const walletSlice = createSlice({ state.assetsLoading = action.payload; }, setCollections: (state, action) => { - if (state.walletNumber === action.payload?.walletNumber && action.payload.collections) { + if ( + state.walletNumber === action.payload?.walletNumber + && action.payload.collections + ) { state.collections = action.payload?.collections?.sort( (a, b) => b?.tokens.length - a?.tokens.length, ); @@ -80,12 +88,10 @@ export const walletSlice = createSlice({ state.collectionsLoading = action.payload; }, removeNFT: (state, action) => { - const collections = state.collections.map( - (col) => ({ - ...col, - tokens: col.tokens.filter((token) => token.id !== action.payload?.id), - }), - ); + const collections = state.collections.map((col) => ({ + ...col, + tokens: col.tokens.filter((token) => token.id !== action.payload?.id), + })); state.collections = collections.filter((col) => col.tokens.length); }, }, diff --git a/source/ui/CanisterInfo/components/Item/styles.js b/source/ui/CanisterInfo/components/Item/styles.js index 0e170cc9..70596fa4 100644 --- a/source/ui/CanisterInfo/components/Item/styles.js +++ b/source/ui/CanisterInfo/components/Item/styles.js @@ -32,7 +32,6 @@ export default makeStyles((theme) => ({ display: 'flex', alignItems: 'center', width: '100%', - marginBottom: 20, }, iconButton: { marginLeft: 'auto',