File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed
Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change 11import { DealQuery } from '@/graphql/poco/graphql' ;
22import CopyButton from '@/components/CopyButton' ;
33import SmartLinkGroup from '@/components/SmartLinkGroup' ;
4+ import { Button } from '@/components/ui/button' ;
45import Bytes from '@/modules/Bytes' ;
56import JsonBlock from '@/modules/JsonBlock' ;
67import DealEvent from '@/modules/events/DealEvent' ;
@@ -14,9 +15,11 @@ import { truncateAddress } from '@/utils/truncateAddress';
1415export function buildDealDetails ( {
1516 deal,
1617 isConnected,
18+ onSeeTasks,
1719} : {
1820 deal : DealQuery [ 'deal' ] ;
1921 isConnected : boolean ;
22+ onSeeTasks : ( ) => void ;
2023} ) {
2124 if ( ! deal ) {
2225 return { } ;
@@ -133,6 +136,21 @@ export function buildDealDetails({
133136 ) ,
134137 'Dataset price' : < p > { deal . datasetPrice } </ p > ,
135138 } ) ,
139+ ...( deal . dataset === null && {
140+ Dataset : (
141+ < p >
142+ Bulk usage{ ' ' }
143+ < Button
144+ variant = "link"
145+ size = "none"
146+ className = "ml-1"
147+ onClick = { onSeeTasks }
148+ >
149+ (see tasks for details)
150+ </ Button >
151+ </ p >
152+ ) ,
153+ } ) ,
136154 ...( deal . workerpool && {
137155 Workerpool : (
138156 < div className = "flex flex-wrap items-center gap-1" >
You can’t perform that action at this time.
0 commit comments