Skip to content

Commit 12efc29

Browse files
committed
feat: reorder trust line in deal details
1 parent a8b3aa8 commit 12efc29

File tree

1 file changed

+24
-24
lines changed

1 file changed

+24
-24
lines changed

src/modules/deals/deal/buildDealDetails.tsx

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -107,30 +107,6 @@ export function buildDealDetails({
107107
value: <Bytes>{deal.tag}</Bytes>,
108108
},
109109
}),
110-
...(deal.trust && {
111-
Trust: {
112-
tooltip: (
113-
<>
114-
Indicates the task replication level:
115-
<ul className="list-inside list-disc">
116-
<li>
117-
<code className="bg-primary-foreground text-primary -mx-1 rounded-sm px-1 py-px">
118-
0
119-
</code>
120-
: single execution
121-
</li>
122-
<li>
123-
<code className="bg-primary-foreground text-primary -mx-1 rounded-sm px-1 py-px">
124-
1
125-
</code>
126-
: replicated for consensus
127-
</li>
128-
</ul>
129-
</>
130-
),
131-
value: <p>{deal.trust}</p>,
132-
},
133-
}),
134110
...(deal.app && {
135111
App: (
136112
<div className="flex flex-wrap items-center gap-1">
@@ -197,6 +173,30 @@ export function buildDealDetails({
197173
/>
198174
),
199175
}),
176+
...(deal.trust && {
177+
Trust: {
178+
tooltip: (
179+
<>
180+
Indicates the task replication level:
181+
<ul className="list-inside list-disc">
182+
<li>
183+
<code className="bg-primary-foreground text-primary -mx-1 rounded-sm px-1 py-px">
184+
0
185+
</code>
186+
: single execution
187+
</li>
188+
<li>
189+
<code className="bg-primary-foreground text-primary -mx-1 rounded-sm px-1 py-px">
190+
1
191+
</code>
192+
: replicated for consensus
193+
</li>
194+
</ul>
195+
</>
196+
),
197+
value: <p>{deal.trust}</p>,
198+
},
199+
}),
200200
...(deal.params && {
201201
Params: <JsonBlock>{deal.params}</JsonBlock>,
202202
}),

0 commit comments

Comments
 (0)