forked from tokenbound/iframe
-
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.
* add hook to fetch v2 and v3 * fix bug * add notes & clean up code * update UI to change accounts * fix bug with nft render for acc * add v3 v2 badge & disclaimer on v2
- Loading branch information
Showing
12 changed files
with
326 additions
and
105 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import clsx from "clsx"; | ||
import { Exclamation } from "../icon"; | ||
|
||
interface Props | ||
extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement> { | ||
message: string; | ||
} | ||
|
||
export const Disclaimer = ({ message, className, ...rest }: Props) => { | ||
return ( | ||
<div | ||
className={clsx( | ||
className, | ||
"flex items-start space-x-2 rounded-lg border-0 bg-tb-warning-secondary p-2" | ||
)} | ||
{...rest} | ||
> | ||
<div className="h-5 min-h-[20px] w-5 min-w-[20px]"> | ||
<Exclamation /> | ||
</div> | ||
<p className="text-xs text-tb-warning-primary">{message}</p> | ||
</div> | ||
); | ||
}; |
Oops, something went wrong.