diff --git a/src/components/StyledAccountTypeIcon.tsx b/src/components/StyledAccountTypeIcon.tsx index d4d1191d08..1f2c57cbc3 100644 --- a/src/components/StyledAccountTypeIcon.tsx +++ b/src/components/StyledAccountTypeIcon.tsx @@ -2,12 +2,9 @@ import React from 'react' import { useTokens } from '@kyper/tokenprovider' +import { Icon } from '@mxenabled/mxui' import { Accounts } from '@kyper/icon/Accounts' import { Check } from '@kyper/icon/Check' -import { PiggyBankOutline } from '@kyper/icon/PiggyBankOutline' -import { Document } from '@kyper/icon/Document' -import { CreditCard } from '@kyper/icon/CreditCard' -import { Dollar } from '@kyper/icon/Dollar' import { Growth } from '@kyper/icon/Growth' import { Home } from '@kyper/icon/Home' import { Notarized } from '@kyper/icon/Notarized' @@ -36,11 +33,11 @@ export const StyledAccountTypeIcon: React.FC = ({ case AccountTypes.CHECKING: return case AccountTypes.SAVINGS: - return + return case AccountTypes.LOAN: - return + return case AccountTypes.CREDIT_CARD: - return + return case AccountTypes.INVESTMENT: return case AccountTypes.LINE_OF_CREDIT: @@ -50,11 +47,11 @@ export const StyledAccountTypeIcon: React.FC = ({ case AccountTypes.PROPERTY: return case AccountTypes.CASH: - return + return case AccountTypes.INSURANCE: return case AccountTypes.PREPAID: - return + return case AccountTypes.UNKNOWN: return case 'accounts': diff --git a/src/views/manualAccount/ManualAccountMenu.js b/src/views/manualAccount/ManualAccountMenu.js index 2eb0b5fb9b..3a458ecfbf 100644 --- a/src/views/manualAccount/ManualAccountMenu.js +++ b/src/views/manualAccount/ManualAccountMenu.js @@ -6,10 +6,6 @@ import { useTokens } from '@kyper/tokenprovider' import { Icon, Text } from '@mxenabled/mxui' import { UtilityRow } from '@kyper/utilityrow' import { Check } from '@kyper/icon/Check' -import { PiggyBankOutline } from '@kyper/icon/PiggyBankOutline' -import { Document } from '@kyper/icon/Document' -import { CreditCard } from '@kyper/icon/CreditCard' -import { Dollar } from '@kyper/icon/Dollar' import { Growth } from '@kyper/icon/Growth' import { Home } from '@kyper/icon/Home' import { Notarized } from '@kyper/icon/Notarized' @@ -25,10 +21,10 @@ import { getDelay } from 'src/utilities/getDelay' import { focusElement } from 'src/utilities/Accessibility' import { AccountTypeNames, AccountTypes } from 'src/views/manualAccount/constants' import { StyledAccountTypeIcon } from 'src/components/StyledAccountTypeIcon' +import { Stack } from '@mui/material' export const ManualAccountMenu = React.forwardRef((props, ref) => { const tokens = useTokens() - const styles = getStyles(tokens) const getNextDelay = getDelay() const typeList = @@ -51,16 +47,16 @@ export const ManualAccountMenu = React.forwardRef((props, ref) => { const getIcon = { [AccountTypes.CHECKING]: , - [AccountTypes.SAVINGS]: , - [AccountTypes.LOAN]: , - [AccountTypes.CREDIT_CARD]: , + [AccountTypes.SAVINGS]: , + [AccountTypes.LOAN]: , + [AccountTypes.CREDIT_CARD]: , [AccountTypes.INVESTMENT]: , [AccountTypes.LINE_OF_CREDIT]: , [AccountTypes.MORTGAGE]: , [AccountTypes.PROPERTY]: , - [AccountTypes.CASH]: , + [AccountTypes.CASH]: , [AccountTypes.INSURANCE]: , - [AccountTypes.PREPAID]: , + [AccountTypes.PREPAID]: , [AccountTypes.UNKNOWN]: , } @@ -75,56 +71,50 @@ export const ManualAccountMenu = React.forwardRef((props, ref) => { return (
- - - {__('Add account manually')} - - - {__("Track accounts, assets, and other things that don't have a live connection.")} - + + + + + {__('Add account manually')} + + + {__("Track accounts, assets, and other things that don't have a live connection.")} + + + - {typeList.map((account_type, i) => ( - - fadeOut(ref.current, 'up', 300).then(props.handleAccountTypeSelect(account_type)) - } - rightChildren={} - title={AccountTypeNames[account_type]()} - /> - ))} + + {typeList.map((account_type, i) => ( + + fadeOut(ref.current, 'up', 300).then(props.handleAccountTypeSelect(account_type)) + } + rightChildren={} + title={AccountTypeNames[account_type]()} + /> + ))} +
) }) -const getStyles = (tokens) => ({ - title: { - marginBottom: tokens.Spacing.XSmall, - marginTop: tokens.Spacing.Large, - }, - body: { - marginBottom: tokens.Spacing.XSmall, - }, -}) - ManualAccountMenu.propTypes = { availableAccountTypes: PropTypes.array, handleAccountTypeSelect: PropTypes.func.isRequired,