From 94be799586d16161e32904ef6300e8918f00913c Mon Sep 17 00:00:00 2001
From: Daniel
Date: Wed, 29 Mar 2023 06:15:25 +0330
Subject: [PATCH] small improvements
---
components/LinkList.tsx | 8 ++++----
components/Modal/EditLink.tsx | 5 +++--
next.config.js | 2 +-
3 files changed, 8 insertions(+), 7 deletions(-)
diff --git a/components/LinkList.tsx b/components/LinkList.tsx
index 0dd5a0c..ff5e786 100644
--- a/components/LinkList.tsx
+++ b/components/LinkList.tsx
@@ -28,7 +28,7 @@ export default function ({
const { removeLink } = useLinkStore();
- const shortendURL = new URL(link.url).host.toLowerCase();
+ const url = new URL(link.url);
const formattedDate = new Date(link.createdAt).toLocaleString("en-US", {
year: "numeric",
month: "short",
@@ -48,7 +48,7 @@ export default function ({
) : null}
{formattedDate}
-
{shortendURL}
+
{url.host}
Edit Link
- {shortendURL}
- {link.title}
+
+ {shortendURL} | {link.title}
+