diff --git a/packages/dashboard/src/pages/index.js b/packages/dashboard/src/pages/index.js index bdf2efa6..d30a5888 100644 --- a/packages/dashboard/src/pages/index.js +++ b/packages/dashboard/src/pages/index.js @@ -10,6 +10,77 @@ dayjs.extend(relativeTime); const apiPrefix = process.env.NODE_ENV === "development" ? "/api/stubs" : ""; const fetcher = (url) => fetch(url).then((r) => r.json()); +function SkylinkList({ items = [] }) { + return ( +
+ {item.name || "— file name not available —"} +
+ + sia://{item.skylink.substr(0, 5)}…{item.skylink.substr(-5)} + ++ {/* Heroicon name: solid/users */} + + {prettyBytes(item.size)} +
+no entries yet
+- {item.name || "— file name not available —"} -
- - sia://{item.skylink.substr(0, 5)}…{item.skylink.substr(-5)} - -- {/* Heroicon name: solid/users */} - - {prettyBytes(item.size)} -
-no entries yet
-- {item.name || "— file name not available —"} -
- - sia://{item.skylink.substr(0, 5)}…{item.skylink.substr(-5)} - -- {/* Heroicon name: solid/users */} - - {prettyBytes(item.size)} -
-no entries yet
-