This repository has been archived by the owner on Nov 28, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix network error and enable forceEnabled flag in useBigIntContractQu…
…ery (#10) Co-authored-by: snoopy1412 <[email protected]>
- Loading branch information
1 parent
40d86da
commit 3bb9dc6
Showing
16 changed files
with
178 additions
and
176 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
import { forwardRef } from 'react'; | ||
import Image from 'next/image'; | ||
import { TooltipArrow } from '@radix-ui/react-tooltip'; | ||
|
||
import Button from '@/components/ui/ghost-button'; | ||
import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from '@/components/ui/tooltip'; | ||
|
||
const ErrorChain = forwardRef<HTMLButtonElement, React.ComponentPropsWithoutRef<'button'>>( | ||
(props, ref) => { | ||
return ( | ||
<Button ref={ref} {...props} className=" border-red-500 "> | ||
<TooltipProvider> | ||
<Tooltip delayDuration={0}> | ||
<TooltipTrigger asChild> | ||
<div className="flex w-full items-center justify-center space-x-2"> | ||
<Image | ||
src="/images/common/error-network.svg" | ||
width={20} | ||
height={20} | ||
alt="error-network" | ||
/> | ||
<span>Wrong Network</span> | ||
</div> | ||
</TooltipTrigger> | ||
<TooltipContent side="left" sideOffset={20} className="border-red-500"> | ||
Your wallet's current network is unsupported. | ||
<TooltipArrow | ||
style={{ | ||
fill: 'red' | ||
}} | ||
/> | ||
</TooltipContent> | ||
</Tooltip> | ||
</TooltipProvider> | ||
</Button> | ||
); | ||
} | ||
); | ||
|
||
ErrorChain.displayName = 'ErrorChain'; | ||
export default ErrorChain; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.