Commit 134b1d70 authored by Zach Pomerantz's avatar Zach Pomerantz Committed by GitHub

revert: "fix: surface connection error" (#5932)

Revert "fix: surface connection error (#5931)"

This reverts commit e9bddcb6.
parent e9bddcb6
......@@ -65,12 +65,12 @@ const LoadingWrapper = styled.div`
export default function PendingView({
connector,
error,
error = false,
tryActivation,
openOptions,
}: {
connector: Connector
error?: string
error?: boolean
tryActivation: (connector: Connector) => void
openOptions: () => void
}) {
......@@ -82,10 +82,12 @@ export default function PendingView({
<ErrorGroup>
<AlertTriangleIcon />
<ThemedText.MediumHeader marginBottom={12}>
<Trans>Connection failed</Trans>
<Trans>Error connecting</Trans>
</ThemedText.MediumHeader>
<ThemedText.BodyPrimary marginBottom={36} textAlign="center">
{error}
<ThemedText.BodyPrimary fontSize={16} marginBottom={36} textAlign="center">
<Trans>
The connection attempt failed. Please click try again and follow the steps to connect in your wallet.
</Trans>
</ThemedText.BodyPrimary>
<ButtonPrimary
$borderRadius="12px"
......@@ -93,7 +95,7 @@ export default function PendingView({
tryActivation(connector)
}}
>
<Trans>Try again</Trans>
<Trans>Try Again</Trans>
</ButtonPrimary>
<ButtonEmpty width="fit-content" padding="0" marginTop={20}>
<ThemedText.Link onClick={openOptions}>
......
......@@ -355,7 +355,7 @@ export default function WalletModal({
<PendingView
openOptions={openOptions}
connector={pendingConnector}
error={pendingError}
error={!!pendingError}
tryActivation={tryActivation}
/>
)}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment