Skip to content

Commit 91a6a3b

Browse files
committed
Add Raw JSON Data display to HomeIndexRoute for enhanced transaction visibility. Improve UI styling for better readability and organization of transaction data.
1 parent b57356b commit 91a6a3b

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

extras/demo-anypay/src/routes/home/home-index-route.tsx

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1664,6 +1664,18 @@ export const HomeIndexRoute = () => {
16641664
</Text>
16651665
</Text>
16661666
<div className="space-y-2">
1667+
{/* Raw JSON View */}
1668+
<div className="bg-gray-800/70 p-3 rounded-md mb-4">
1669+
<div className="flex items-center justify-between mb-2">
1670+
<Text variant="small" color="primary" className="font-semibold flex items-center">
1671+
<Clipboard className="h-4 w-4 mr-2" />
1672+
Raw JSON Data
1673+
</Text>
1674+
</div>
1675+
<pre className="text-xs overflow-x-auto whitespace-pre-wrap bg-gray-900/50 p-2 rounded border border-gray-700/50 max-h-96 overflow-y-auto scrollbar-thin scrollbar-thumb-gray-600 scrollbar-track-gray-800">
1676+
{JSON.stringify(metaTxns, null, 2)}
1677+
</pre>
1678+
</div>
16671679
{metaTxns.map((tx, index) => (
16681680
<div
16691681
key={`metatx-${index}`}

0 commit comments

Comments
 (0)