-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* implemented design updates and add custom networks * make it easy to add custom networks. * update test action to close the networkAddedModal Co-authored-by: Curtis <Curtis.David7@gmail.com>
- Loading branch information
1 parent
16d5ad0
commit 2bf68d7
Showing
47 changed files
with
14,236 additions
and
227 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
app/components/UI/ImageIcon/__snapshots__/index.test.tsx.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`ImageIcon should render correctly 1`] = `""`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import React from 'react'; | ||
import { shallow } from 'enzyme'; | ||
import ImageIcon from './'; | ||
const sampleImage = 'https://s3.amazonaws.com/airswap-token-images/WBTC.png'; | ||
|
||
describe('ImageIcon', () => { | ||
it('should render correctly', () => { | ||
const wrapper = shallow(<ImageIcon image={sampleImage} style={{}} />); | ||
expect(wrapper).toMatchSnapshot(); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import { Image } from 'react-native'; | ||
import React from 'react'; | ||
import images from 'images/image-icons'; | ||
|
||
interface ImageIconPropTypes { | ||
image: string; | ||
style: any; | ||
} | ||
|
||
const ImageIcon = (props: ImageIconPropTypes) => { | ||
const { image, style } = props; | ||
|
||
if (!image) return null; | ||
const source = images[image]; | ||
if (!source) { | ||
return null; | ||
} | ||
|
||
return <Image source={source} style={style} />; | ||
}; | ||
|
||
export default ImageIcon; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.