added prettier settings

This commit is contained in:
daniel31x13
2023-12-29 12:21:22 -05:00
parent e4fc8948fa
commit ee6dcdcc5b
21 changed files with 480 additions and 291 deletions
+2 -2
View File
@@ -49,7 +49,7 @@ export default function DeleteLinkModal({ onClose, activeLink }: Props) {
<p>Are you sure you want to delete this Link?</p>
<div role="alert" className="alert alert-warning">
<i className="bi-exclamation-triangle text-xl"/>
<i className="bi-exclamation-triangle text-xl" />
<span>
<b>Warning:</b> This action is irreversible!
</span>
@@ -64,7 +64,7 @@ export default function DeleteLinkModal({ onClose, activeLink }: Props) {
className={`ml-auto btn w-fit text-white flex items-center gap-2 duration-100 bg-red-500 hover:bg-red-400 hover:dark:bg-red-600 cursor-pointer`}
onClick={deleteLink}
>
<i className="bi-trash text-xl"/>
<i className="bi-trash text-xl" />
Delete
</button>
</div>
@@ -227,10 +227,10 @@ export default function EditCollectionSharingModal({
e.canCreate && e.canUpdate && e.canDelete
? "Admin"
: e.canCreate && !e.canUpdate && !e.canDelete
? "Contributor"
: !e.canCreate && !e.canUpdate && !e.canDelete
? "Viewer"
: undefined;
? "Contributor"
: !e.canCreate && !e.canUpdate && !e.canDelete
? "Viewer"
: undefined;
return (
<>
+7 -7
View File
@@ -86,7 +86,7 @@ export default function EditLinkModal({ onClose, activeLink }: Props) {
title={link.url}
target="_blank"
>
<i className="bi-link-45deg text-xl"/>
<i className="bi-link-45deg text-xl" />
<p>{shortendURL}</p>
</Link>
) : undefined}
@@ -116,13 +116,13 @@ export default function EditLinkModal({ onClose, activeLink }: Props) {
defaultValue={
link.collection.id
? {
value: link.collection.id,
label: link.collection.name,
}
value: link.collection.id,
label: link.collection.name,
}
: {
value: null as unknown as number,
label: "Unorganized",
}
value: null as unknown as number,
label: "Unorganized",
}
}
/>
) : null}