Skip to content

Commit 72175c7

Browse files
committed
feat: add onSeeTasks callback to buildDealDetails for task navigation
1 parent babb40e commit 72175c7

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/routes/$chainSlug/_layout/deal/$dealId.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,11 @@ function DealsRoute() {
7171
} = useDealData((dealId as string).toLowerCase(), chainId!);
7272

7373
const dealDetails = deal
74-
? buildDealDetails({ deal, isConnected })
74+
? buildDealDetails({
75+
deal,
76+
isConnected,
77+
onSeeTasks: () => setCurrentTab(1),
78+
})
7579
: undefined;
7680

7781
if (!isValid) {

0 commit comments

Comments
 (0)