Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 3 additions & 6 deletions src/components/StyledAccountTypeIcon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ import React from 'react'
import { Icon } from '@mxenabled/mxui'

import { useTokens } from '@kyper/tokenprovider'
import { Growth } from '@kyper/icon/Growth'
import { Image } from '@kyper/icon/Image'
import { Health } from '@kyper/icon/Health'

import { AccountTypes } from 'src/views/manualAccount/constants'

Expand Down Expand Up @@ -35,17 +32,17 @@ export const StyledAccountTypeIcon: React.FC<StyledAccountTypeIconProps> = ({
case AccountTypes.CREDIT_CARD:
return <Icon name="credit_card" size={iconSize} />
case AccountTypes.INVESTMENT:
return <Growth color={tokens.TextColor.Default} size={iconSize} />
return <Icon name="bid_landscape" size={iconSize} />
case AccountTypes.LINE_OF_CREDIT:
return <Icon name="description" size={iconSize} />
case AccountTypes.MORTGAGE:
return <Icon name="home" size={iconSize} />
case AccountTypes.PROPERTY:
return <Image color={tokens.TextColor.Default} size={iconSize} />
return <Icon name="holiday_village" size={iconSize} />
case AccountTypes.CASH:
return <Icon name="local_atm" size={iconSize} />
case AccountTypes.INSURANCE:
return <Health color={tokens.TextColor.Default} size={iconSize} />
return <Icon name="diagnosis" size={iconSize} />
case AccountTypes.PREPAID:
return <Icon name="credit_card" size={iconSize} />
case AccountTypes.UNKNOWN:
Expand Down
11 changes: 3 additions & 8 deletions src/views/manualAccount/ManualAccountMenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,8 @@ import React, { useEffect } from 'react'
import PropTypes from 'prop-types'
import { __ } from 'src/utilities/Intl'

import { useTokens } from '@kyper/tokenprovider'
import { Icon, Text } from '@mxenabled/mxui'
import { UtilityRow } from '@kyper/utilityrow'
import { Growth } from '@kyper/icon/Growth'
import { Image } from '@kyper/icon/Image'
import { Health } from '@kyper/icon/Health'

import { fadeOut } from 'src/utilities/Animation'

Expand All @@ -20,7 +16,6 @@ import { StyledAccountTypeIcon } from 'src/components/StyledAccountTypeIcon'
import { Stack } from '@mui/material'

export const ManualAccountMenu = React.forwardRef((props, ref) => {
const tokens = useTokens()
const getNextDelay = getDelay()

const typeList =
Expand All @@ -46,12 +41,12 @@ export const ManualAccountMenu = React.forwardRef((props, ref) => {
[AccountTypes.SAVINGS]: <Icon color="secondary" name="savings" size={20} />,
[AccountTypes.LOAN]: <Icon color="secondary" name="contract" size={20} />,
[AccountTypes.CREDIT_CARD]: <Icon color="secondary" name="credit_card" size={20} />,
[AccountTypes.INVESTMENT]: <Growth color={tokens.TextColor.Default} />,
[AccountTypes.INVESTMENT]: <Icon color="secondary" name="bid_landscape" size={20} />,
[AccountTypes.LINE_OF_CREDIT]: <Icon color="secondary" name="description" size={20} />,
[AccountTypes.MORTGAGE]: <Icon color="secondary" name="home" size={20} />,
[AccountTypes.PROPERTY]: <Image color={tokens.TextColor.Default} />,
[AccountTypes.PROPERTY]: <Icon color="secondary" name="holiday_village" size={20} />,
[AccountTypes.CASH]: <Icon color="secondary" name="local_atm" size={20} />,
[AccountTypes.INSURANCE]: <Health color={tokens.TextColor.Default} />,
[AccountTypes.INSURANCE]: <Icon color="secondary" name="diagnosis" size={20} />,
[AccountTypes.PREPAID]: <Icon color="secondary" name="credit_card" size={20} />,
[AccountTypes.UNKNOWN]: <Icon color="secondary" name="grid_view" size={20} />,
}
Expand Down
Loading