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
12 changes: 4 additions & 8 deletions src/components/StyledAccountTypeIcon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,9 @@ import React from 'react'
import { Icon } from '@mxenabled/mxui'

import { useTokens } from '@kyper/tokenprovider'
import { Check } from '@kyper/icon/Check'
import { Growth } from '@kyper/icon/Growth'
import { Home } from '@kyper/icon/Home'
import { Notarized } from '@kyper/icon/Notarized'
import { Image } from '@kyper/icon/Image'
import { Health } from '@kyper/icon/Health'
import { Grid } from '@kyper/icon/Grid'

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

Expand All @@ -31,7 +27,7 @@ export const StyledAccountTypeIcon: React.FC<StyledAccountTypeIconProps> = ({
const getIcon = () => {
switch (props.icon) {
case AccountTypes.CHECKING:
return <Check color={tokens.TextColor.Default} size={iconSize} />
return <Icon name="checkbook" size={iconSize} />
case AccountTypes.SAVINGS:
return <Icon name="savings" size={iconSize} />
case AccountTypes.LOAN:
Expand All @@ -41,9 +37,9 @@ export const StyledAccountTypeIcon: React.FC<StyledAccountTypeIconProps> = ({
case AccountTypes.INVESTMENT:
return <Growth color={tokens.TextColor.Default} size={iconSize} />
case AccountTypes.LINE_OF_CREDIT:
return <Notarized color={tokens.TextColor.Default} size={iconSize} />
return <Icon name="description" size={iconSize} />
case AccountTypes.MORTGAGE:
return <Home color={tokens.TextColor.Default} size={iconSize} />
return <Icon name="home" size={iconSize} />
case AccountTypes.PROPERTY:
return <Image color={tokens.TextColor.Default} size={iconSize} />
case AccountTypes.CASH:
Expand All @@ -53,7 +49,7 @@ export const StyledAccountTypeIcon: React.FC<StyledAccountTypeIconProps> = ({
case AccountTypes.PREPAID:
return <Icon name="credit_card" size={iconSize} />
case AccountTypes.UNKNOWN:
return <Grid color={tokens.TextColor.Default} size={iconSize} />
return <Icon name="grid_view" size={iconSize} />
case 'accounts':
return <Icon color="inherit" name="account_balance" size={iconSize} />
default:
Expand Down
12 changes: 4 additions & 8 deletions src/views/manualAccount/ManualAccountMenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,9 @@ import { __ } from 'src/utilities/Intl'
import { useTokens } from '@kyper/tokenprovider'
import { Icon, Text } from '@mxenabled/mxui'
import { UtilityRow } from '@kyper/utilityrow'
import { Check } from '@kyper/icon/Check'
import { Growth } from '@kyper/icon/Growth'
import { Home } from '@kyper/icon/Home'
import { Notarized } from '@kyper/icon/Notarized'
import { Image } from '@kyper/icon/Image'
import { Health } from '@kyper/icon/Health'
import { Grid } from '@kyper/icon/Grid'

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

Expand Down Expand Up @@ -46,18 +42,18 @@ export const ManualAccountMenu = React.forwardRef((props, ref) => {
]

const getIcon = {
[AccountTypes.CHECKING]: <Check color={tokens.TextColor.Default} />,
[AccountTypes.CHECKING]: <Icon color="secondary" name="checkbook" size={20} />,
[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.LINE_OF_CREDIT]: <Notarized color={tokens.TextColor.Default} />,
[AccountTypes.MORTGAGE]: <Home color={tokens.TextColor.Default} />,
[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.CASH]: <Icon color="secondary" name="local_atm" size={20} />,
[AccountTypes.INSURANCE]: <Health color={tokens.TextColor.Default} />,
[AccountTypes.PREPAID]: <Icon color="secondary" name="credit_card" size={20} />,
[AccountTypes.UNKNOWN]: <Grid color={tokens.TextColor.Default} />,
[AccountTypes.UNKNOWN]: <Icon color="secondary" name="grid_view" size={20} />,
}

useEffect(() => {
Expand Down
4 changes: 0 additions & 4 deletions typings/kyper.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,13 @@ declare module '@kyper/userfeedback'
declare module '@kyper/textarea'
declare module '@kyper/input'
declare module '@kyper/icon/Accounts'
declare module '@kyper/icon/Check'
declare module '@kyper/icon/PiggyBankOutline'
declare module '@kyper/icon/Document'
declare module '@kyper/icon/CreditCard'
declare module '@kyper/icon/Dollar'
declare module '@kyper/icon/Growth'
declare module '@kyper/icon/Home'
declare module '@kyper/icon/Notarized'
declare module '@kyper/icon/Image'
declare module '@kyper/icon/Health'
declare module '@kyper/icon/Grid'
declare module '@kyper/progressindicators'
declare module '@kyper/utilityrow'
declare module '@kyper/hooks'
Expand Down
Loading