Skip to content

Commit

Permalink
feat(wallet): Add ids for analytics (#115)
Browse files Browse the repository at this point in the history
* feat(wallet): Add ids for analytics

* test: Updated snapshots
  • Loading branch information
hachiojidev authored Jan 6, 2021
1 parent 804140a commit 851de1b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/__tests__/widgets/walletModal.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ it("renders ConnectModal correctly", () => {
>
<button
class="sc-eCssSg gfGMMG"
id="wallet-connect-metamask"
style="justify-content: space-between;"
>
<div
Expand Down Expand Up @@ -183,6 +184,7 @@ it("renders ConnectModal correctly", () => {
</button>
<button
class="sc-eCssSg gfGMMG"
id="wallet-connect-trustwallet"
style="justify-content: space-between;"
>
<div
Expand Down Expand Up @@ -225,6 +227,7 @@ it("renders ConnectModal correctly", () => {
</button>
<button
class="sc-eCssSg gfGMMG"
id="wallet-connect-mathwallet"
style="justify-content: space-between;"
>
<div
Expand Down Expand Up @@ -256,6 +259,7 @@ it("renders ConnectModal correctly", () => {
</button>
<button
class="sc-eCssSg gfGMMG"
id="wallet-connect-tokenpocket"
style="justify-content: space-between;"
>
<div
Expand Down Expand Up @@ -289,6 +293,7 @@ it("renders ConnectModal correctly", () => {
</button>
<button
class="sc-eCssSg iuYxsG"
id="wallet-connect-walletconnect"
style="justify-content: space-between;"
>
<div
Expand Down
1 change: 1 addition & 0 deletions src/widgets/WalletModal/WalletCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ const WalletCard: React.FC<Props> = ({ login, walletConfig, onDismiss, mb }) =>
}}
style={{ justifyContent: "space-between" }}
mb={mb}
id={`wallet-connect-${title.toLocaleLowerCase()}`}
>
<Text bold color="primary" mr="16px">
{title}
Expand Down

0 comments on commit 851de1b

Please sign in to comment.