Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
interface
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
LuckySwap
interface
Commits
ceec3f0e
Unverified
Commit
ceec3f0e
authored
Jul 06, 2022
by
Vignesh Mohankumar
Committed by
GitHub
Jul 06, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: remove Tally Ho specific rendering (#4023)
feat: remove tally
parent
904d1835
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
21 deletions
+0
-21
tally.png
src/assets/images/tally.png
+0
-0
index.tsx
src/components/WalletModal/index.tsx
+0
-20
react-app-env.d.ts
src/react-app-env.d.ts
+0
-1
No files found.
src/assets/images/tally.png
deleted
100644 → 0
View file @
904d1835
13.4 KB
src/components/WalletModal/index.tsx
View file @
ceec3f0e
...
...
@@ -12,7 +12,6 @@ import { updateWalletError } from 'state/wallet/reducer'
import
styled
from
'
styled-components/macro
'
import
MetamaskIcon
from
'
../../assets/images/metamask.png
'
import
TallyIcon
from
'
../../assets/images/tally.png
'
import
{
ReactComponent
as
Close
}
from
'
../../assets/images/x.svg
'
import
{
fortmatic
,
getWalletForConnector
,
injected
}
from
'
../../connectors
'
import
{
SUPPORTED_WALLETS
}
from
'
../../constants/wallet
'
...
...
@@ -185,7 +184,6 @@ export default function WalletModal({
// get wallets user can switch too, depending on device/browser
function
getOptions
()
{
const
isMetaMask
=
!!
window
.
ethereum
?.
isMetaMask
const
isTally
=
!!
window
.
ethereum
?.
isTally
const
isCoinbaseWallet
=
!!
window
.
ethereum
?.
isCoinbaseWallet
return
Object
.
keys
(
SUPPORTED_WALLETS
).
map
((
key
)
=>
{
const
option
=
SUPPORTED_WALLETS
[
key
]
...
...
@@ -249,24 +247,6 @@ export default function WalletModal({
// likewise for generic
else
if
(
option
.
name
===
'
Injected
'
&&
isMetaMask
)
{
return
null
}
else
if
(
option
.
name
===
'
Injected
'
&&
isTally
)
{
return
(
<
Option
id=
{
`connect-${key}`
}
key=
{
key
}
onClick=
{
()
=>
{
option
.
connector
===
connector
?
setWalletView
(
WALLET_VIEWS
.
ACCOUNT
)
:
!
option
.
href
&&
option
.
connector
&&
tryActivation
(
option
.
connector
)
}
}
color=
{
'
#E8831D
'
}
header=
{
<
Trans
>
Tally
</
Trans
>
}
isActive=
{
option
.
connector
===
connector
}
subheader=
{
null
}
link=
{
null
}
icon=
{
TallyIcon
}
/>
)
}
}
...
...
src/react-app-env.d.ts
View file @
ceec3f0e
...
...
@@ -13,7 +13,6 @@ interface Window {
// value that is populated and returns true by the Coinbase Wallet mobile dapp browser
isCoinbaseWallet
?:
true
isMetaMask
?:
true
isTally
?:
false
autoRefreshOnNetworkChange
?:
boolean
}
web3
?:
Record
<
string
,
unknown
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment