Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 0 additions & 10 deletions frontend/components/iotmonitor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -256,13 +256,9 @@ const IoTMonitor = () => {

const BlockchainStorageSection = () => (
<Card className="mt-6">
<CardHeader>
<CardTitle>Blockchain Storage</CardTitle>
</CardHeader>
<CardContent>
<div className="grid grid-cols-1 md:grid-cols-2 gap-4">
<div>
<h3 className="font-medium mb-2">Device Keys</h3>
<div className="max-h-[200px] overflow-y-auto">
{Object.values(monitorData.blockchainStorage?.deviceKeys || {}).map((key) => (
<div key={key.deviceId} className="p-2 bg-gray-50 rounded mb-2">
Expand All @@ -280,7 +276,6 @@ const IoTMonitor = () => {
</div>
</div>
<div>
<h3 className="font-medium mb-2">Recent Transactions</h3>
<div className="max-h-[200px] overflow-y-auto">
{(monitorData.blockchainStorage?.transactions || []).map((tx, i) => (
<div key={i} className="p-2 bg-gray-50 rounded mb-2">
Expand All @@ -298,11 +293,6 @@ const IoTMonitor = () => {
</p>
</div>
))}
{(!monitorData.blockchainStorage?.transactions || monitorData.blockchainStorage.transactions.length === 0) && (
<div className="text-gray-500 text-sm text-center p-4">
No transactions recorded yet
</div>
)}
</div>
</div>
</div>
Expand Down
6 changes: 6 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.