Skip to content

Conversation

@standreinmcp
Copy link
Contributor

No description provided.

@codecov
Copy link

codecov bot commented Oct 27, 2020

Codecov Report

Merging #1234 into master will increase coverage by 0.00%.
The diff coverage is 17.07%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #1234   +/-   ##
=======================================
  Coverage   13.89%   13.90%           
=======================================
  Files         535      549   +14     
  Lines       11457    11539   +82     
  Branches     2885     2908   +23     
=======================================
+ Hits         1592     1604   +12     
- Misses       9858     9928   +70     
  Partials        7        7           
Flag Coverage Δ
#unittests 13.90% <17.07%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
src/components/token-dashboard/token-dashboard.tsx 6.52% <ø> (ø)
...mponents/widgets/components/image-banner/styles.ts 0.00% <0.00%> (ø)
.../components/widgets/components/separator/styles.ts 0.00% <0.00%> (ø)
...s/widgets/components/single-balance-icon/styles.ts 0.00% <0.00%> (ø)
...s/widgets/components/static-text-columns/styles.ts 0.00% <0.00%> (ø)
...rc/components/widgets/components/summary/styles.ts 0.00% <0.00%> (ø)
...nents/widgets/components/three-lines-cta/styles.ts 0.00% <0.00%> (ø)
src/components/widgets/styles.ts 0.00% <0.00%> (ø)
src/components/widgets/widgets.tsx 6.06% <6.06%> (ø)
...onents/static-text-columns/static-text-columns.tsx 14.28% <14.28%> (ø)
... and 20 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d5606bd...f439f92. Read the comment docs.

}

const ImageBannerComponent: React.FC<Props & ExternalProps> = ({ imageUrl, styles, urlToOpen }) => {
const linkHandler = () => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can remove this, we already have

image

import { withTheme } from '../../core/theme/with-theme';
import stylesProvider from './styles';

interface ExternalProps {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IExternalProps

urlToOpen: string;
}

interface Props {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have IThemeProps<ReturnType<typeof stylesProvider>>,
Remove this

import { withTheme } from '../../core/theme/with-theme';
import stylesProvider from './styles';

interface ExternalProps {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IExternalProps

}

interface Props {
styles: ReturnType<typeof stylesProvider>;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove this and use theme props

style={styles.affiliateBanner}
/>

<AccountSummary
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should also be removed

fontSize: normalizeFontAndLineHeight(18),
fontWeight: '400',
lineHeight: normalizeFontAndLineHeight(22),
letterSpacing: -0.4,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should not use this

firstLine: string;
secondLine: string;
icon: {
value: string; // IconValues
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove string and change to IconValues

return <ThreeLinesCta data={item.data as I3LinesCtaData[]} cta={item.cta} />;
case ModuleTypes.BALANCES_GRID_ICONS:
return <Summary data={item.data} />;
case ModuleTypes.SEPARATOR:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make a Separator component


const renderItem = ({ item }) => {
switch (item.modules[0].type) {
case 'image-banner':
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

move to a separate components

accountStats={this.props.accountStats}
/>

<Widgets />
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to implement SmartScreen and do something

// Class SmartScreen
//    - Component Widgets (response API), typeof IScreenResponse
//              | '3-lines-cta'
//              | 'static-text-columns-top-header'
//              | 'static-text-columns-bottom-header'
//              | 'balances-grid-icons'
//              | 'single-balance-icon'
//              | 'image-banner'
//              | '2-lines-text-banner'
//              | 'separator';

@a-novi
Copy link
Contributor

a-novi commented Oct 27, 2020

You have to move all the components from above in the the folder screens/widgets/components/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants