Skip to content

Commit f850baa

Browse files
committed
transaction route
1 parent 3dba71d commit f850baa

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

pkgs/frontend/app/routes/$treeId_.thankstoken.send.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,9 @@ const ThanksTokenSend: FC = () => {
157157
setSelectedUsers([]);
158158
setAmount(10);
159159
}
160-
: undefined
160+
: () => {
161+
navigate(`/${treeId}`);
162+
}
161163
}
162164
/>
163165

pkgs/frontend/app/routes/transaction.tsx

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import {
1010
Text,
1111
createListCollection,
1212
} from "@chakra-ui/react";
13-
import { useSearchParams } from "@remix-run/react";
13+
import { useNavigate, useSearchParams } from "@remix-run/react";
1414
import { ERC20_ABI } from "abi/erc20";
1515
import { publicClient } from "hooks/useViem";
1616
import { useActiveWallet } from "hooks/useWallet";
@@ -164,10 +164,15 @@ const Transaction: FC = () => {
164164
amount,
165165
]);
166166

167+
const navigate = useNavigate();
168+
167169
return (
168170
<Grid gridTemplateRows="1fr auto" h="calc(100vh - 72px)">
169171
<Box w="100%">
170-
<PageHeader title="トランザクション実行" />
172+
<PageHeader
173+
title="トランザクション実行"
174+
backLink={() => navigate("/1814")}
175+
/>
171176

172177
{/* <SettingsSubSection headingText="トランザクションタイプ">
173178
<SelectRoot

0 commit comments

Comments
 (0)