-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix bug in LP table, polish shorts table, and close long and close sh…
…ort modals (#442)
- Loading branch information
1 parent
64161c0
commit 67257d2
Showing
18 changed files
with
394 additions
and
379 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
41 changes: 41 additions & 0 deletions
41
apps/hyperdrive-trading/src/ui/hyperdrive/TransactionView.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,41 @@ | ||
import { ReactElement, ReactNode } from "react"; | ||
import { Well } from "src/ui/base/components/Well/Well"; | ||
|
||
interface TransactionViewProps { | ||
heading: string; | ||
tokenInput: ReactNode; | ||
transactionPreview: ReactNode; | ||
disclaimer?: ReactNode; | ||
|
||
actionButton: ReactNode; | ||
} | ||
|
||
export function TransactionView({ | ||
heading, | ||
tokenInput, | ||
transactionPreview, | ||
disclaimer, | ||
actionButton, | ||
}: TransactionViewProps): ReactElement { | ||
return ( | ||
<div className="flex flex-col gap-4"> | ||
<h5 className="font-bold">{heading}</h5> | ||
{tokenInput} | ||
|
||
<div className="mt-4 flex flex-col gap-6"> | ||
<Well elevation="flat"> | ||
<div className="space-y-4"> | ||
<span className="text-h6 font-bold">Preview transaction</span> | ||
{transactionPreview} | ||
</div> | ||
</Well> | ||
|
||
{disclaimer ? ( | ||
<p className="text-center text-body">{disclaimer}</p> | ||
) : null} | ||
|
||
{actionButton} | ||
</div> | ||
</div> | ||
); | ||
} |
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.
67257d2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
hyperdrive-fixed-borrow – ./apps/fixed-borrow
hyperdrive-fixed-borrow.vercel.app
hyperdrive-fixed-borrow-git-main-delvtech.vercel.app
hyperdrive-fixed-borrow-delvtech.vercel.app
67257d2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
hyperdrive-monorepo-hyperdrive-trading – ./apps/hyperdrive-trading
hyperdrive-monorepo-hyperdrive-trading-delvtech.vercel.app
hyperdrive-monorepo-hyperdrive-trading-git-main-delvtech.vercel.app
hyperdrive-monorepo-hyperdrive-trading.vercel.app
67257d2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
hyperdrive-sdk-docs – ./apps/hyperdrive-sdk-docs
hyperdrive-sdk-docs-delvtech.vercel.app
hyperdrive-sdk-docs-git-main-delvtech.vercel.app
hyperdrive-sdk-docs.vercel.app
67257d2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
trading-competition – ./apps/hyperdrive-trading
delv-trading-competition.vercel.app
trading-competition-delvtech.vercel.app
trading-competition-git-trading-competition-production-delvtech.vercel.app
trading-competition.delv.tech