Skip to content

Commit 52c3f44

Browse files
committed
tweaked input + button on crosschain transfer for OP Interop
1 parent ec1a0a1 commit 52c3f44

File tree

1 file changed

+22
-14
lines changed
  • apps/dashboard/src/app/(dashboard)/(chain)/[chain_id]/[contractAddress]/cross-chain

1 file changed

+22
-14
lines changed

apps/dashboard/src/app/(dashboard)/(chain)/[chain_id]/[contractAddress]/cross-chain/data-table.tsx

Lines changed: 22 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ import {
1818
TableHeader,
1919
TableRow,
2020
} from "@/components/ui/table";
21+
import { ToolTipLabel } from "@/components/ui/tooltip";
2122
import { getThirdwebClient } from "@/constants/thirdweb.server";
2223
import { zodResolver } from "@hookform/resolvers/zod";
2324
import { useMutation } from "@tanstack/react-query";
@@ -207,20 +208,27 @@ export function DataTable({
207208
render={({ field }) => (
208209
<FormItem>
209210
<FormControl>
210-
<div className="flex">
211-
<Input className="rounded-r-0 border-r-none" {...field} />
212-
<Button
213-
type="button"
214-
onClick={() =>
215-
crossChainTransferMutation.mutate(
216-
row.getValue("chainId"),
217-
)
218-
}
219-
className="rounded-lg rounded-r-0 border border-r-none"
220-
>
221-
Transfer
222-
</Button>
223-
</div>
211+
<ToolTipLabel label="Coming soon">
212+
<div className="flex">
213+
<Input
214+
className="w-22 rounded-r-none border-r-0"
215+
placeholder="amount"
216+
{...field}
217+
/>
218+
<Button
219+
type="button"
220+
disabled
221+
onClick={() =>
222+
crossChainTransferMutation.mutate(
223+
row.getValue("chainId"),
224+
)
225+
}
226+
className="rounded-lg rounded-l-none border border-l-0"
227+
>
228+
Transfer
229+
</Button>
230+
</div>
231+
</ToolTipLabel>
224232
</FormControl>
225233
<FormMessage />
226234
</FormItem>

0 commit comments

Comments
 (0)