Skip to content

Commit

Permalink
feat(recurring buys): fixed storybooks
Browse files Browse the repository at this point in the history
  • Loading branch information
milan-bc committed Jul 23, 2021
1 parent e3ac19f commit 15a9334
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import React, { memo } from 'react'
import styled, { css } from 'styled-components'
import styled from 'styled-components'

import { Icon } from '../Icons'
import { Text } from '../Text'

const Amount = styled.div`
Expand Down Expand Up @@ -33,10 +32,12 @@ const AmountSubHeader = (props: Props) => {

export type Props = {
'data-e2e': string
title: string
subTitle: string
title: string
}

export default memo(AmountSubHeader,
(prevProps, nextProps) =>
prevProps.title === nextProps.title && prevProps.subTitle === nextProps.subTitle)
export default memo(
AmountSubHeader,
(prevProps, nextProps) =>
prevProps.title === nextProps.title && prevProps.subTitle === nextProps.subTitle
)
2 changes: 1 addition & 1 deletion packages/blockchain-info-components/src/Flyouts/Footer.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { memo } from 'react'
import React from 'react'
import styled from 'styled-components'

const Footer = styled.div`
Expand Down
2 changes: 1 addition & 1 deletion packages/blockchain-info-components/src/Flyouts/Header.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { memo } from 'react'
import styled, { css } from 'styled-components'
import styled from 'styled-components'

import { Icon } from '../Icons'
import { Text } from '../Text'
Expand Down
2 changes: 1 addition & 1 deletion packages/blockchain-info-components/src/Icons/Icon.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const Icon = (props) => {
const code = Icomoon[name]

// if coin has logo from coinfig
if (window.coins[name]) {
if (window.coins && window.coins[name]) {
if (window.coins[name].coinfig.type.logoPngUrl) {
return (
<BaseIcon {...props}>
Expand Down

0 comments on commit 15a9334

Please sign in to comment.