diff options
author | Brandon Millman <brandon.millman@gmail.com> | 2018-06-20 01:30:28 +0800 |
---|---|---|
committer | Brandon Millman <brandon.millman@gmail.com> | 2018-06-20 01:30:28 +0800 |
commit | 829bc962095096a2b70516862ebddc40d21ff7ee (patch) | |
tree | 287ee807a9215ac4c7e4cd9cf80d28e3eb2ae6d7 /packages/website/ts/components/top_bar | |
parent | f97e605bf6769a17d0352219f5fb1133f7cb2430 (diff) | |
download | dexon-sol-tools-829bc962095096a2b70516862ebddc40d21ff7ee.tar.gz dexon-sol-tools-829bc962095096a2b70516862ebddc40d21ff7ee.tar.zst dexon-sol-tools-829bc962095096a2b70516862ebddc40d21ff7ee.zip |
Use Image component instead of img tag
Diffstat (limited to 'packages/website/ts/components/top_bar')
-rw-r--r-- | packages/website/ts/components/top_bar/provider_display.tsx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/website/ts/components/top_bar/provider_display.tsx b/packages/website/ts/components/top_bar/provider_display.tsx index 0e9954350..1e8855c14 100644 --- a/packages/website/ts/components/top_bar/provider_display.tsx +++ b/packages/website/ts/components/top_bar/provider_display.tsx @@ -9,6 +9,7 @@ import { ProviderPicker } from 'ts/components/top_bar/provider_picker'; import { Container } from 'ts/components/ui/container'; import { DropDown } from 'ts/components/ui/drop_down'; import { Identicon } from 'ts/components/ui/identicon'; +import { Image } from 'ts/components/ui/image'; import { Text } from 'ts/components/ui/text'; import { Dispatcher } from 'ts/redux/dispatcher'; import { colors } from 'ts/style/colors'; @@ -75,7 +76,7 @@ export class ProviderDisplay extends React.Component<ProviderDisplayProps, Provi </Text> </Container> {isProviderMetamask && ( - <img src="/images/metamask_icon.png" style={{ width: ROOT_HEIGHT, height: ROOT_HEIGHT }} /> + <Image src="/images/metamask_icon.png" height={ROOT_HEIGHT} width={ROOT_HEIGHT} /> )} </div> ); |