import React from "react"; import noop from "lodash/noop"; import { renderWithTheme } from "../../testHelpers"; import ConnectModal from "../../widgets/WalletModal/ConnectModal"; it("renders ConnectModal correctly", () => { const { asFragment } = renderWithTheme(); expect(asFragment()).toMatchInlineSnapshot(` .c5 { color: #452A7A; font-size: 16px; font-weight: 600; line-height: 1.5; } .c13 { color: #1FC7D4; font-size: 16px; font-weight: 600; line-height: 1.5; margin-right: 16px; } .c16 { color: #1FC7D4; font-size: 16px; font-weight: 600; line-height: 1.5; } .c17 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; display: flex; -webkit-align-items: center; -webkit-box-align: center; -ms-flex-align: center; align-items: center; width: -webkit-fit-content; width: -moz-fit-content; width: fit-content; } .c17:hover { -webkit-text-decoration: underline; text-decoration: underline; } .c9 { fill: #1FC7D4; -webkit-flex-shrink: 0; -ms-flex-negative: 0; flex-shrink: 0; } .c14 { fill: #452A7A; -webkit-flex-shrink: 0; -ms-flex-negative: 0; flex-shrink: 0; } .c19 { fill: #1FC7D4; -webkit-flex-shrink: 0; -ms-flex-negative: 0; flex-shrink: 0; margin-right: 6px; } .c6 { font-size: 20px; font-weight: 600; line-height: 1.1; } .c0 { min-width: 320px; } .c10 { padding: 24px; } .c3 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; display: flex; } .c7 { -webkit-align-items: center; -webkit-box-align: center; -ms-flex-align: center; align-items: center; border: 0; border-radius: 16px; box-shadow: 0px -1px 0px 0px rgba(14,14,44,0.4) inset; cursor: pointer; display: -webkit-inline-box; display: -webkit-inline-flex; display: -ms-inline-flexbox; display: inline-flex; font-family: inherit; font-size: 16px; font-weight: 600; -webkit-box-pack: center; -webkit-justify-content: center; -ms-flex-pack: center; justify-content: center; -webkit-letter-spacing: 0.03em; -moz-letter-spacing: 0.03em; -ms-letter-spacing: 0.03em; letter-spacing: 0.03em; line-height: 1; opacity: 1; outline: 0; -webkit-transition: background-color 0.2s,opacity 0.2s; transition: background-color 0.2s,opacity 0.2s; height: 48px; padding: 0 24px; background-color: transparent; color: #1FC7D4; box-shadow: none; } .c7:hover:not(:disabled):not(.pancake-button--disabled):not(.pancake-button--disabled):not(:active) { opacity: 0.65; } .c7:active:not(:disabled):not(.pancake-button--disabled):not(.pancake-button--disabled) { opacity: 0.85; } .c7:disabled, .c7.pancake-button--disabled { background-color: #E9EAEB; border-color: #E9EAEB; box-shadow: none; color: #BDC2C4; cursor: not-allowed; } .c12 { -webkit-align-items: center; -webkit-box-align: center; -ms-flex-align: center; align-items: center; border: 0; border-radius: 16px; box-shadow: 0px -1px 0px 0px rgba(14,14,44,0.4) inset; cursor: pointer; display: -webkit-inline-box; display: -webkit-inline-flex; display: -ms-inline-flexbox; display: inline-flex; font-family: inherit; font-size: 16px; font-weight: 600; -webkit-box-pack: center; -webkit-justify-content: center; -ms-flex-pack: center; justify-content: center; -webkit-letter-spacing: 0.03em; -moz-letter-spacing: 0.03em; -ms-letter-spacing: 0.03em; letter-spacing: 0.03em; line-height: 1; opacity: 1; outline: 0; -webkit-transition: background-color 0.2s,opacity 0.2s; transition: background-color 0.2s,opacity 0.2s; height: 48px; padding: 0 24px; background-color: #EFF4F5; box-shadow: none; color: #1FC7D4; width: 100%; margin-bottom: 8px; } .c12:hover:not(:disabled):not(.pancake-button--disabled):not(.pancake-button--disabled):not(:active) { opacity: 0.65; } .c12:active:not(:disabled):not(.pancake-button--disabled):not(.pancake-button--disabled) { opacity: 0.85; } .c12:disabled, .c12.pancake-button--disabled { background-color: #E9EAEB; border-color: #E9EAEB; box-shadow: none; color: #BDC2C4; cursor: not-allowed; } .c15 { -webkit-align-items: center; -webkit-box-align: center; -ms-flex-align: center; align-items: center; border: 0; border-radius: 16px; box-shadow: 0px -1px 0px 0px rgba(14,14,44,0.4) inset; cursor: pointer; display: -webkit-inline-box; display: -webkit-inline-flex; display: -ms-inline-flexbox; display: inline-flex; font-family: inherit; font-size: 16px; font-weight: 600; -webkit-box-pack: center; -webkit-justify-content: center; -ms-flex-pack: center; justify-content: center; -webkit-letter-spacing: 0.03em; -moz-letter-spacing: 0.03em; -ms-letter-spacing: 0.03em; letter-spacing: 0.03em; line-height: 1; opacity: 1; outline: 0; -webkit-transition: background-color 0.2s,opacity 0.2s; transition: background-color 0.2s,opacity 0.2s; height: 48px; padding: 0 24px; background-color: #EFF4F5; box-shadow: none; color: #1FC7D4; width: 100%; margin-bottom: 0; } .c15:hover:not(:disabled):not(.pancake-button--disabled):not(.pancake-button--disabled):not(:active) { opacity: 0.65; } .c15:active:not(:disabled):not(.pancake-button--disabled):not(.pancake-button--disabled) { opacity: 0.85; } .c15:disabled, .c15.pancake-button--disabled { background-color: #E9EAEB; border-color: #E9EAEB; box-shadow: none; color: #BDC2C4; cursor: not-allowed; } .c8 { padding: 0; width: 48px; } .c2 { -webkit-align-items: center; -webkit-box-align: center; -ms-flex-align: center; align-items: center; background: transparent; border-bottom: 1px solid #E9EAEB; display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; display: flex; padding: 12px 24px; } .c4 { -webkit-align-items: center; -webkit-box-align: center; -ms-flex-align: center; align-items: center; -webkit-flex: 1; -ms-flex: 1; flex: 1; } .c11 { -webkit-flex-direction: column; -ms-flex-direction: column; flex-direction: column; } .c1 { background: #FFFFFF; box-shadow: 0px 20px 36px -8px rgba(14,14,44,0.1),0px 1px 1px rgba(0,0,0,0.05); border: 1px solid #E9EAEB; border-radius: 32px; width: 100%; z-index: 100; } .c18 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; display: flex; -webkit-align-self: center; -ms-flex-item-align: center; align-self: center; -webkit-align-items: center; -webkit-box-align: center; -ms-flex-align: center; align-items: center; margin-top: 24px; } @media screen and (min-width:968px) { .c6 { font-size: 20px; } } @media screen and (min-width:370px) { .c1 { width: auto; min-width: 320px; max-width: 100%; } }

Connect to a wallet

Learn how to connect
`); });