diff --git a/src/renderer/features/assets/AssetsSearch/ui/AssetsSearch.tsx b/src/renderer/features/assets/AssetsSearch/ui/AssetsSearch.tsx index 2df99b58d..f23c0bc3b 100644 --- a/src/renderer/features/assets/AssetsSearch/ui/AssetsSearch.tsx +++ b/src/renderer/features/assets/AssetsSearch/ui/AssetsSearch.tsx @@ -1,7 +1,7 @@ import { useUnit } from 'effector-react'; import { useI18n } from '@/shared/i18n'; -import { Box, SearchInput } from '@/shared/ui-kit'; +import { SearchInput } from '@/shared/ui-kit'; import { assetsSearchModel } from '../model/assets-search-model'; export const AssetsSearch = () => { @@ -10,12 +10,10 @@ export const AssetsSearch = () => { const query = useUnit(assetsSearchModel.$query); return ( - - - + ); }; diff --git a/src/renderer/features/assets/AssetsSettings/ui/AssetsSettings.tsx b/src/renderer/features/assets/AssetsSettings/ui/AssetsSettings.tsx index 14e097a6a..4bd58ff29 100644 --- a/src/renderer/features/assets/AssetsSettings/ui/AssetsSettings.tsx +++ b/src/renderer/features/assets/AssetsSettings/ui/AssetsSettings.tsx @@ -3,8 +3,8 @@ import { memo } from 'react'; import { TEST_IDS } from '@/shared/constants'; import { useI18n } from '@/shared/i18n'; -import { FootnoteText, IconButton, Select, Switch } from '@/shared/ui'; -import { Box, Popover } from '@/shared/ui-kit'; +import { FootnoteText, IconButton, Switch } from '@/shared/ui'; +import { Box, Field, Popover, Select } from '@/shared/ui-kit'; import { AssetsListView } from '@/entities/asset'; import { assetsSettingsModel } from '../model/assets-settings-modal'; @@ -14,19 +14,6 @@ export const AssetsSettings = memo(() => { const assetsView = useUnit(assetsSettingsModel.$assetsView); const hideZeroBalances = useUnit(assetsSettingsModel.$hideZeroBalances); - const options = [ - { - id: AssetsListView.TOKEN_CENTRIC.toString(), - value: AssetsListView.TOKEN_CENTRIC, - element: {t('balances.tokenCentric')}, - }, - { - id: AssetsListView.CHAIN_CENTRIC.toString(), - value: AssetsListView.CHAIN_CENTRIC, - element: {t('balances.chainCentric')}, - }, - ]; - return ( @@ -48,13 +35,20 @@ export const AssetsSettings = memo(() => { {t('balances.hideZeroBalancesLabel')}
- assetsSettingsModel.events.assetsViewChanged(Number(value))} + > + + {t('balances.tokenCentric')} + + + {t('balances.chainCentric')} + + +
diff --git a/src/renderer/features/contacts/ContactFilter/ui/ContactFilter.tsx b/src/renderer/features/contacts/ContactFilter/ui/ContactFilter.tsx index 37c0801b4..9db2de214 100644 --- a/src/renderer/features/contacts/ContactFilter/ui/ContactFilter.tsx +++ b/src/renderer/features/contacts/ContactFilter/ui/ContactFilter.tsx @@ -2,7 +2,7 @@ import { useUnit } from 'effector-react'; import { useEffect } from 'react'; import { useI18n } from '@/shared/i18n'; -import { Box, SearchInput } from '@/shared/ui-kit'; +import { SearchInput } from '@/shared/ui-kit'; import { filterModel } from '../model/contact-filter'; export const ContactFilter = () => { @@ -15,12 +15,10 @@ export const ContactFilter = () => { }, []); return ( - - - + ); }; diff --git a/src/renderer/pages/Governance/ui/Governance.tsx b/src/renderer/pages/Governance/ui/Governance.tsx index c2c1ec3a8..f93bf98b0 100644 --- a/src/renderer/pages/Governance/ui/Governance.tsx +++ b/src/renderer/pages/Governance/ui/Governance.tsx @@ -67,7 +67,9 @@ export const Governance = () => { return (
- + + +