Skip to content

Commit

Permalink
XDC logo added in network dropdown
Browse files Browse the repository at this point in the history
  • Loading branch information
JigneshTejani committed Jan 7, 2023
1 parent 23b9db9 commit fedd3c5
Showing 1 changed file with 6 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import PropTypes from 'prop-types'
import React from 'react'
import Identicon from '../../../ui/identicon/identicon.component'

function NetworkDropdownIcon (props) {
const {
Expand All @@ -25,13 +26,9 @@ function NetworkDropdownIcon (props) {
)
: (
<div className={`menu-icon-circle${isSelected ? '--active' : ''}`}>
<div
style={{
background: backgroundColor,
border: innerBorder,
height: `${diameter}px`,
width: `${diameter}px`,
}}
<Identicon
image="./images/xdc_logo.svg"
diameter={diameter}
/>
</div>
)
Expand All @@ -41,15 +38,15 @@ NetworkDropdownIcon.defaultProps = {
backgroundColor: undefined,
loading: false,
innerBorder: 'none',
diameter: '12',
diameter: 16,
isSelected: false,
}

NetworkDropdownIcon.propTypes = {
backgroundColor: PropTypes.string,
loading: PropTypes.bool,
innerBorder: PropTypes.string,
diameter: PropTypes.string,
diameter: PropTypes.number,
isSelected: PropTypes.bool,
}

Expand Down

0 comments on commit fedd3c5

Please sign in to comment.