diff --git a/components/CollectionCard.tsx b/components/CollectionCard.tsx
index da634cc..cd7d80e 100644
--- a/components/CollectionCard.tsx
+++ b/components/CollectionCard.tsx
@@ -129,12 +129,12 @@ export default function CollectionCard({ collection, className }: Props) {
className="flex items-center absolute bottom-3 left-3 z-10 btn px-2 btn-ghost rounded-full"
onClick={() => setEditCollectionSharingModal(true)}
>
- {collectionOwner.id ? (
+ {collectionOwner.id && (
{collection.name}
- {collection.isPublic ? ( + {collection.isPublic && ( - ) : undefined} + )}{shortenedURL}
- ) : undefined} + )}{t("name")}
diff --git a/components/ModalContent/NewLinkModal.tsx b/components/ModalContent/NewLinkModal.tsx index 0284687..680f9ef 100644 --- a/components/ModalContent/NewLinkModal.tsx +++ b/components/ModalContent/NewLinkModal.tsx @@ -128,7 +128,7 @@ export default function NewLinkModal({ onClose }: Props) {{t("email")}
diff --git a/components/ModalContent/PreservedFormatsModal.tsx b/components/ModalContent/PreservedFormatsModal.tsx index 87e84a7..4414b37 100644 --- a/components/ModalContent/PreservedFormatsModal.tsx +++ b/components/ModalContent/PreservedFormatsModal.tsx @@ -150,16 +150,16 @@ export default function PreservedFormatsModal({ onClose, activeLink }: Props) {
{t("preserved_formats")}
{screenshotAvailable(link) || - pdfAvailable(link) || - readabilityAvailable(link) || - monolithAvailable(link) ? ( + pdfAvailable(link) || + readabilityAvailable(link) || + monolithAvailable(link) ? ({t("available_formats")}
) : ( "" )}{t("preservation_in_queue")}
{t("check_back_later")}
{t("check_back_later")}
{t("collection")}
- {link.collection.name ? ( + {link.collection.name && ({date ? new Date(date).toLocaleString("en-US", { - year: "numeric", - month: "long", - day: "numeric", - }) + year: "numeric", + month: "long", + day: "numeric", + }) : undefined}
@@ -259,9 +257,8 @@ export default function ReadableView({ link }: Props) { >
@@ -151,12 +152,12 @@ export default function PublicCollections() {
className="flex items-center btn px-2 btn-ghost rounded-full"
onClick={() => setEditCollectionSharingModal(true)}
>
- {collectionOwner.id ? (
+ {collectionOwner.id && (
{collection.members.length > 0 && - collection.members.length === 1 + collection.members.length === 1 ? t("by_author_and_other", { + author: collectionOwner.name, + count: collection.members.length, + }) + : collection.members.length > 0 && + collection.members.length !== 1 + ? t("by_author_and_others", { author: collectionOwner.name, count: collection.members.length, }) - : collection.members.length > 0 && - collection.members.length !== 1 - ? t("by_author_and_others", { - author: collectionOwner.name, - count: collection.members.length, - }) : t("by_author", { - author: collectionOwner.name, - })} + author: collectionOwner.name, + })}
{t("email")}
@@ -214,7 +214,7 @@ export default function Register({ onChange={(e) => setForm({ ...form, email: e.target.value })} />@@ -248,7 +248,7 @@ export default function Register({ />
{t("email")}
{t("language")}