From 0709cec637132a7fea2c50bc0364852d34790054 Mon Sep 17 00:00:00 2001 From: Liam Date: Thu, 17 Nov 2022 08:28:01 +0000 Subject: [PATCH] Change to nextui Text instead of vanilla html tags --- src/pages/files/[fileId].js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/pages/files/[fileId].js b/src/pages/files/[fileId].js index f4a61e8..8531836 100644 --- a/src/pages/files/[fileId].js +++ b/src/pages/files/[fileId].js @@ -7,6 +7,7 @@ import { downloadURI } from "src/utils/helpers/webUtils"; const Link = dynamic(() => import("next/link")); const Image = dynamic(() => import("next/image")); const Button = dynamic(() => import("@nextui-org/react/button")); +const Text = dynamic(() => import("@nextui-org/react/text")); export default function File({ isValidFile, fileData }) { const file = JSON.parse(fileData); @@ -113,14 +114,14 @@ export default function File({ isValidFile, fileData }) { {metaData}
-

+ {originalFileName} ({fileId}.{ext}) -

-

{uploadDate}

-

+ + {uploadDate} + Uploader: {uploader.username} -{" "} {formatBytes(size)} -

+
{toShow}