Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

replace MetaMask icon with a generic one #84

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@ Put your wallet address where you want to get a drop, and click the **Request**

### More Interactions

This is not just it. Using the buttons shown below, you can go to the Subnet explorer or add the Subnet to your browser wallet extensions like Metamask with a single click.
This is not just it. Using the buttons shown below, you can go to the Subnet explorer or add the Subnet to your browser wallet extensions like Metamask or Trust Wallet with a single click.

![](https://raw.githubusercontent.com/ava-labs/avalanche-docs/master/static/img/faucet-4.png)

Expand Down
Binary file removed client/public/memtamask.webp
Binary file not shown.
3 changes: 3 additions & 0 deletions client/public/wallet.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 5 additions & 5 deletions client/src/components/AddNetwork.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { addNetwork, addAsset } from "./Metamask"
import { addNetwork, addAsset } from "./Wallet"

export default function AddNetwork(props: any) {
return (
<div className='footer-buttons'>
<button className="add-network" onClick={() => {addNetwork(props.config)}}>
<img alt='metamask' style={{width: "25px", height: "25px", marginRight: "5px"}} src="/memtamask.webp"/>
Add Subnet to Metamask
<img alt='wallet' style={{width: "22px", height: "22px", marginRight: "5px"}} src="/wallet.svg"/>
Add Subnet to Wallet
</button>

<button className="add-network" onClick={() => {window.open(`${props.config.EXPLORER}${props.token?.CONTRACTADDRESS ? "/address/" + props.token.CONTRACTADDRESS : ""}`, '_blank')}}>
Expand All @@ -17,8 +17,8 @@ export default function AddNetwork(props: any) {
props?.token?.CONTRACTADDRESS
&&
<button className="add-network" onClick={() => {addAsset(props?.token)}}>
<img alt='asset' style={{width: "25px", height: "25px", marginRight: "5px", borderRadius: "25px"}} src={props?.token?.IMAGE}/>
Add Asset to Metamask
<img alt='wallet' style={{width: "25px", height: "25px", marginRight: "5px", borderRadius: "25px"}} src={props?.token?.IMAGE}/>
Add Asset to Wallet
</button>
}
</div>
Expand Down
6 changes: 3 additions & 3 deletions client/src/components/FaucetForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import ReCaptcha from './ReCaptcha'
import FooterBox from './FooterBox'
import queryString from 'query-string'
import { DropdownOption } from './types'
import { connectAccount } from './Metamask'
import { connectAccount } from './Wallet'
import { AxiosResponse } from 'axios'

const FaucetForm = (props: any) => {
Expand Down Expand Up @@ -516,8 +516,8 @@ const FaucetForm = (props: any) => {
autoFocus
/>

<span className='connect-metamask' onClick={ () => connectAccount(updateAddress) }>
<img alt='metamask' src="/memtamask.webp"/>
<span className='connect-wallet' onClick={ () => connectAccount(updateAddress) }>
<img alt='wallet' src="/wallet.svg"/>
Connect
</span>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export const addNetwork = async (config: any): Promise<void> => {
return
}
if(window.ethereum == undefined) {
window.open('https://metamask.io/download', '_blank')
window.open('https://ethereum.org/en/wallets/find-wallet/', '_blank')
}

await window?.ethereum?.request({
Expand All @@ -35,7 +35,7 @@ export const addAsset = async (config: any): Promise<void> => {
return
}
if(window.ethereum == undefined) {
window.open('https://metamask.io/download', '_blank')
window.open('https://ethereum.org/en/wallets/find-wallet/', '_blank')
}

await window?.ethereum?.request({
Expand All @@ -55,7 +55,7 @@ export const addAsset = async (config: any): Promise<void> => {

export const connectAccount = async (updateAddress: any, showPopup = true) => {
if(window.ethereum == undefined) {
showPopup && window.open('https://metamask.io/download', '_blank')
showPopup && window.open('https://ethereum.org/en/wallets/find-wallet/', '_blank')
return
}

Expand Down
10 changes: 5 additions & 5 deletions client/src/components/styles/FaucetForm.css
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ a {
padding: 0 12px;
}

.connect-metamask {
.connect-wallet {
cursor: pointer;
color: rgb(180, 180, 183);
margin-right: 5px;
Expand All @@ -116,12 +116,12 @@ a {
font-size: 10px
}

.connect-metamask > img {
width: 25px;
height: 25px;
.connect-wallet > img {
width: 20px;
height: 20px;
}

.connect-metamask:hover {
.connect-wallet:hover {
color: white;
}

Expand Down