Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export function ManageLongsButton({
<button
className="m-0 flex h-[52px] w-full flex-row items-center justify-start border-b-2 border-b-neutral-content/20 p-0 text-start hover:bg-neutral hover:text-neutral-content"
onClick={() => {
const modalId = `${assetId}`;
const modalId = `${hyperdrive.address}-${assetId}`;
(
document.getElementById(modalId) as HTMLDialogElement
).showModal();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ export function OpenLongsTableDesktop({
<div className="daisy-card overflow-x-clip rounded-box bg-gray-750 pt-3">
{/* Modal needs to be rendered outside of the table so that dialog can be used. Otherwise react throws a dom nesting error */}
{tableInstance.getRowModel().rows.map(({ original }) => {
const modalId = `${original.assetId}`;
const modalId = `${original.hyperdrive.address}-${original.assetId}`;
return (
<CloseLongModalButton
key={modalId}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export function ManageShortButton({
<button
className="m-0 flex h-[52px] w-full flex-row items-center justify-start border-b-2 border-b-neutral-content/20 p-0 text-start hover:bg-neutral hover:text-neutral-content"
onClick={() => {
const modalId = `${assetId}`;
const modalId = `${hyperdrive.address}-${assetId}`;
(
document.getElementById(modalId) as HTMLDialogElement
).showModal();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ export function OpenShortsTableDesktop({
<div className="daisy-card overflow-x-clip rounded-box bg-gray-750 pt-3">
{/* Modal needs to be rendered outside of the table so that dialog can be used. Otherwise react throws a dom nesting error */}
{tableInstance.getRowModel().rows.map((row) => {
const modalId = `${row.original.assetId}`;
const modalId = `${row.original.hyperdriveAddress}-${row.original.assetId}`;
return (
<CloseShortModalButton
key={modalId}
Expand Down
Loading