-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move disclaimers into buttons (#1493)
- Loading branch information
1 parent
80ccd71
commit 5e8b2b5
Showing
4 changed files
with
103 additions
and
76 deletions.
There are no files selected for viewing
19 changes: 19 additions & 0 deletions
19
apps/hyperdrive-trading/src/ui/hyperdrive/InvalidTransactionButton.tsx
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,19 @@ | ||
import classNames from "classnames"; | ||
import { PropsWithChildren, ReactElement } from "react"; | ||
|
||
export function InvalidTransactionButton({ | ||
children, | ||
wide, | ||
}: PropsWithChildren<{ wide?: boolean }>): ReactElement { | ||
return ( | ||
<button | ||
disabled | ||
className={classNames( | ||
"daisy-btn daisy-btn-error rounded-full disabled:bg-error disabled:text-base-100 disabled:opacity-70", | ||
{ "w-full": wide }, | ||
)} | ||
> | ||
{children} | ||
</button> | ||
); | ||
} |
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