-
Notifications
You must be signed in to change notification settings - Fork 2
Migrate Kyper ChevronRight Icon to MXUI #357
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: cmwimo/CT-2388
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3,8 +3,7 @@ import PropTypes from 'prop-types' | |
|
|
||
| import { useTokens } from '@kyper/tokenprovider' | ||
| import { UtilityRow } from '@kyper/utilityrow' | ||
| import { ChevronRight } from '@kyper/icon/ChevronRight' | ||
| import { Text } from '@mxenabled/mxui' | ||
| import { Icon, Text } from '@mxenabled/mxui' | ||
|
|
||
| import { __ } from 'src/utilities/Intl' | ||
|
|
||
|
|
@@ -32,7 +31,7 @@ export const SupportMenu = React.forwardRef((props, menuRef) => { | |
| <UtilityRow | ||
| borderType="inset-left" | ||
| onClick={selectGeneralSupport} | ||
| rightChildren={<ChevronRight />} | ||
| rightChildren={<Icon name="chevron_right" size={16} />} | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. size should be 24px as per designs |
||
| subTitle={__('Get help connecting your account')} | ||
| title={__('Request support')} | ||
| /> | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3,8 +3,7 @@ import { useSelector } from 'react-redux' | |
| import PropTypes from 'prop-types' | ||
|
|
||
| import { useTokens } from '@kyper/tokenprovider' | ||
| import { Text } from '@mxenabled/mxui' | ||
| import { ChevronRight } from '@kyper/icon/ChevronRight' | ||
| import { Icon, Text } from '@mxenabled/mxui' | ||
| import { Link } from '@mui/material' | ||
|
|
||
| import { selectConnectConfig } from 'src/redux/reducers/configSlice' | ||
|
|
@@ -97,7 +96,7 @@ export const DataRequested = (props) => { | |
| style={styles.link} | ||
| > | ||
| {__('Other available data')} | ||
| <ChevronRight style={styles.chevron} /> | ||
| <Icon name="chevron_right" size={16} /> | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. size again |
||
| </Link> | ||
| </SlideDown> | ||
| </Fragment> | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3,11 +3,10 @@ import { useSelector } from 'react-redux' | |
| import PropTypes from 'prop-types' | ||
|
|
||
| import { useTokens } from '@kyper/tokenprovider' | ||
| import { Text } from '@mxenabled/mxui' | ||
| import { Icon, Text } from '@mxenabled/mxui' | ||
| import { Link as LinkIcon } from '@kyper/icon/Link' | ||
| import { Lock } from '@kyper/icon/Lock' | ||
| import { InfoOutline } from '@kyper/icon/InfoOutline' | ||
| import { ChevronRight } from '@kyper/icon/ChevronRight' | ||
| import { Link, Stack } from '@mui/material' | ||
|
|
||
| import { PageviewInfo } from 'src/const/Analytics' | ||
|
|
@@ -176,7 +175,7 @@ export const DisclosureInterstitial = React.forwardRef((props, interstitialNavRe | |
| variant="ParagraphSmall" | ||
| > | ||
| {__('Data requested')} | ||
| <ChevronRight style={styles.chevron} /> | ||
| <Icon name="chevron_right" size={16} sx={{ marginLeft: '13.02px' }} /> | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Let's use a stack with spacing There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. size 24px |
||
| </Link> | ||
| <Link | ||
| data-test="privacy-policy-button" | ||
|
|
@@ -198,7 +197,7 @@ export const DisclosureInterstitial = React.forwardRef((props, interstitialNavRe | |
| > | ||
| {_p('connect/disclosure/policy/link', 'MX Privacy Policy')} | ||
|
|
||
| <ChevronRight style={styles.chevron} /> | ||
| <Icon name="chevron_right" size={16} sx={{ marginLeft: '13.02px' }} /> | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Stack with spacing There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. size 24px |
||
| </Link> | ||
| </Stack> | ||
| </Fragment> | ||
|
|
@@ -246,7 +245,6 @@ const getStyles = (tokens) => { | |
| marginTop: tokens.Spacing.Medium, | ||
| width: 'fit-content', | ||
| }, | ||
| chevron: { marginLeft: '13.02px' }, | ||
| } | ||
| } | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,7 @@ | ||
| import React from 'react' | ||
|
|
||
| import { useTokens } from '@kyper/tokenprovider' | ||
| import { ChevronRight } from '@kyper/icon/ChevronRight' | ||
| import { Icon } from '@mxenabled/mxui' | ||
| import PropTypes from 'prop-types' | ||
|
|
||
| import { Button } from '@mui/material' | ||
|
|
@@ -21,7 +21,7 @@ const PoweredByMX = ({ onClick }) => { | |
| variant="text" | ||
| > | ||
| <PoweredByMXText /> | ||
| <ChevronRight style={styles.chevron} /> | ||
| <Icon name="chevron_right" size={16} sx={{ marginLeft: 4 }} /> | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Stack with spacing There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. size 24px |
||
| </Button> | ||
| ) | ||
| } | ||
|
|
@@ -36,7 +36,6 @@ const getStyles = () => { | |
| display: 'flex', | ||
| flexDirection: 'row', | ||
| }, | ||
| chevron: { marginLeft: 4 }, | ||
| } | ||
| } | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -7,8 +7,7 @@ import { getInstitutionLoginUrl } from 'src/utilities/Institution' | |
| import { goToUrlLink } from 'src/utilities/global' | ||
|
|
||
| import { useTokens } from '@kyper/tokenprovider' | ||
| import { Text } from '@mxenabled/mxui' | ||
| import { ChevronRight } from '@kyper/icon/ChevronRight' | ||
| import { Icon, Text } from '@mxenabled/mxui' | ||
| import { Link } from '@mui/material' | ||
|
|
||
| export const ImpededMemberError = ({ | ||
|
|
@@ -52,7 +51,7 @@ export const ImpededMemberError = ({ | |
| > | ||
| {__('Visit website')} | ||
| </Link> | ||
| <ChevronRight color={tokens.Color.Primary300} /> | ||
| <Icon name="chevron_right" size={16} sx={{ color: tokens.Color.Primary300 }} /> | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Color prop or theme variable There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. size 24px |
||
| </div> | ||
| </div> | ||
| </div> | ||
|
|
@@ -66,7 +65,7 @@ export const ImpededMemberError = ({ | |
| </Text> | ||
| <div style={styles.actionArea}> | ||
| <Link onClick={onRefreshClick}>{__('Try again')}</Link> | ||
| <ChevronRight color={tokens.Color.Primary300} /> | ||
| <Icon name="chevron_right" size={16} sx={{ color: tokens.Color.Primary300 }} /> | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Color prop or theme variable There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. size 24px |
||
| </div> | ||
| </div> | ||
| </div> | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3,9 +3,8 @@ import PropTypes from 'prop-types' | |
| import { __ } from 'src/utilities/Intl' | ||
|
|
||
| import { useTokens } from '@kyper/tokenprovider' | ||
| import { Text } from '@mxenabled/mxui' | ||
| import { Icon, Text } from '@mxenabled/mxui' | ||
| import { UtilityRow } from '@kyper/utilityrow' | ||
| import { ChevronRight } from '@kyper/icon/ChevronRight' | ||
| import { Check } from '@kyper/icon/Check' | ||
| import { PiggyBankOutline } from '@kyper/icon/PiggyBankOutline' | ||
| import { Document } from '@kyper/icon/Document' | ||
|
|
@@ -107,7 +106,7 @@ export const ManualAccountMenu = React.forwardRef((props, ref) => { | |
| onClick={() => | ||
| fadeOut(ref.current, 'up', 300).then(props.handleAccountTypeSelect(account_type)) | ||
| } | ||
| rightChildren={<ChevronRight />} | ||
| rightChildren={<Icon name="chevron_right" size={16} />} | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. size 24px |
||
| title={AccountTypeNames[account_type]()} | ||
| /> | ||
| ))} | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3,8 +3,7 @@ import PropTypes from 'prop-types' | |
| import _isEmpty from 'lodash/isEmpty' | ||
|
|
||
| import { useTokens } from '@kyper/tokenprovider' | ||
| import { Text } from '@mxenabled/mxui' | ||
| import { ChevronRight } from '@kyper/icon/ChevronRight' | ||
| import { Icon, Text } from '@mxenabled/mxui' | ||
| import { TextField, SelectionBox } from 'src/privacy/input' | ||
| import { Button, RadioGroup, FormControl, FormLabel } from '@mui/material' | ||
|
|
||
|
|
@@ -192,7 +191,13 @@ export const AccountInfo = (props) => { | |
|
|
||
| <SlideDown delay={getNextDelay()}> | ||
| <ActionableUtilityRow | ||
| icon={<ChevronRight color={tokens.TextColor.ButtonLinkTertiary} size={16} />} | ||
| icon={ | ||
| <Icon | ||
| name="chevron_right" | ||
| size={16} | ||
| sx={{ color: tokens.TextColor.ButtonLinkTertiary }} | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Color prop or theme variable There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. size 24px |
||
| /> | ||
| } | ||
| onClick={() => setShowFindDetails(true)} | ||
| text={__('Help finding your account number')} | ||
| /> | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -5,8 +5,7 @@ import { defer } from 'rxjs' | |
| import _isEmpty from 'lodash/isEmpty' | ||
|
|
||
| import { useTokens } from '@kyper/tokenprovider' | ||
| import { Text } from '@mxenabled/mxui' | ||
| import { ChevronRight } from '@kyper/icon/ChevronRight' | ||
| import { Icon, Text } from '@mxenabled/mxui' | ||
| import { TextField } from 'src/privacy/input' | ||
| import { Button } from '@mui/material' | ||
|
|
||
|
|
@@ -224,7 +223,13 @@ export const RoutingNumber = (props) => { | |
|
|
||
| <SlideDown delay={getNextDelay()}> | ||
| <ActionableUtilityRow | ||
| icon={<ChevronRight color={tokens.TextColor.ButtonLinkTertiary} size={16} />} | ||
| icon={ | ||
| <Icon | ||
| name="chevron_right" | ||
| size={16} | ||
| sx={{ color: tokens.TextColor.ButtonLinkTertiary }} | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Color prop or theme variable There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. size 24px |
||
| /> | ||
| } | ||
| onClick={() => setShowFindDetails(true)} | ||
| text={__('Help finding your routing number')} | ||
| /> | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's use the material theme colors
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also size needs to be 24px