Skip to content

Commit

Permalink
fix: error button colors on error view
Browse files Browse the repository at this point in the history
  • Loading branch information
chalabi2 committed Dec 18, 2024
1 parent d5ee8ec commit 639ff84
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 1 addition & 3 deletions components/react/views/Error.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,11 @@ export const Error = ({
<div className="flex flex-col w-full h-full py-6 mt-4 sm:px-8">
<div className="p-3 border rounded-full border-red-600 mx-auto aspect-1 flex-shrink-0">
<Image

src={
currentWalletName === 'Cosmos MetaMask Extension'
? '/metamask.svg'
: getRealLogo(logo)
}

Check warning on line 54 in components/react/views/Error.tsx

View check run for this annotation

Codecov / codecov/patch

components/react/views/Error.tsx#L50-L54

Added lines #L50 - L54 were not covered by tests

alt="Wallet type logo"
className="flex-shrink-0 w-16 h-16 aspect-1"
width={16}
Expand All @@ -68,7 +66,7 @@ export const Error = ({
className="rounded-lg w-[180px] btn btn-error inline-flex justify-center items-center py-2.5 font-medium mt-4 bg-mint mx-auto text-black dark:text-white"
onClick={onReconnect}
>
<ArrowPathIcon className="flex-shrink-0 w-5 h-5 mr-2 text-black dark:text-white" />
<ArrowPathIcon className="flex-shrink-0 w-5 h-5 mr-2 " />

Check warning on line 69 in components/react/views/Error.tsx

View check run for this annotation

Codecov / codecov/patch

components/react/views/Error.tsx#L69

Added line #L69 was not covered by tests
Reconnect
</button>
</div>
Expand Down
2 changes: 0 additions & 2 deletions components/react/views/WalletList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ export const WalletList = ({
<div className={`${isMobile ? 'hidden' : 'block'}`}>
<div className="space-y-2 mb-4">
{browser.map(({ walletInfo: { name, prettyName, logo } }) => (

<div key={name} className="w-full">
<button
onClick={() => onWalletClicked(name)}
Expand Down Expand Up @@ -86,7 +85,6 @@ export const WalletList = ({
)}
</button>
</div>

Check warning on line 87 in components/react/views/WalletList.tsx

View check run for this annotation

Codecov / codecov/patch

components/react/views/WalletList.tsx#L57-L87

Added lines #L57 - L87 were not covered by tests

))}
</div>

Expand Down

0 comments on commit 639ff84

Please sign in to comment.