From 49cddfab38acdbefd5a385b105cdef8929991429 Mon Sep 17 00:00:00 2001 From: Ephraim Atta-Duncan Date: Thu, 15 Feb 2024 06:11:50 +0000 Subject: [PATCH] chore: lint with oxc --- .../src/app/(marketing)/open/page.tsx | 7 +- .../src/app/(marketing)/pricing/page.tsx | 4 +- .../components/(marketing)/pricing-table.tsx | 8 +- .../_action-items/resend-document.tsx | 152 +++++++++--------- packages/lib/server-only/2fa/setup-2fa.ts | 2 +- 5 files changed, 91 insertions(+), 82 deletions(-) diff --git a/apps/marketing/src/app/(marketing)/open/page.tsx b/apps/marketing/src/app/(marketing)/open/page.tsx index a1fea41e4..76de85fcf 100644 --- a/apps/marketing/src/app/(marketing)/open/page.tsx +++ b/apps/marketing/src/app/(marketing)/open/page.tsx @@ -147,7 +147,12 @@ export default async function OpenPage() {

All our metrics, finances, and learnings are public. We believe in transparency and want to share our journey with you. You can read more about why here:{' '} - + Announcing Open Metrics

diff --git a/apps/marketing/src/app/(marketing)/pricing/page.tsx b/apps/marketing/src/app/(marketing)/pricing/page.tsx index e4c7b776a..5756f9e68 100644 --- a/apps/marketing/src/app/(marketing)/pricing/page.tsx +++ b/apps/marketing/src/app/(marketing)/pricing/page.tsx @@ -53,7 +53,7 @@ export default function PricingPage() {
@@ -166,6 +166,7 @@ export default function PricingPage() { support@documenso.com @@ -175,6 +176,7 @@ export default function PricingPage() { className="text-documenso-700 font-bold" href="https://documen.so/discord" target="_blank" + rel="noreferrer" > in our Discord-Support-Channel {' '} diff --git a/apps/marketing/src/components/(marketing)/pricing-table.tsx b/apps/marketing/src/components/(marketing)/pricing-table.tsx index b65411064..80510b8e5 100644 --- a/apps/marketing/src/components/(marketing)/pricing-table.tsx +++ b/apps/marketing/src/components/(marketing)/pricing-table.tsx @@ -123,7 +123,7 @@ export const PricingTable = ({ className, ...props }: PricingTableProps) => {

{' '} - + The Early Adopter Deal:

@@ -133,7 +133,11 @@ export const PricingTable = ({ className, ...props }: PricingTableProps) => {

{' '} - + Includes all upcoming features diff --git a/apps/web/src/app/(dashboard)/documents/_action-items/resend-document.tsx b/apps/web/src/app/(dashboard)/documents/_action-items/resend-document.tsx index e8e3d6130..4bcb25a6c 100644 --- a/apps/web/src/app/(dashboard)/documents/_action-items/resend-document.tsx +++ b/apps/web/src/app/(dashboard)/documents/_action-items/resend-document.tsx @@ -108,88 +108,86 @@ export const ResendDocumentActionItem = ({ }; return ( - <> -

- - e.preventDefault()}> - - Resend - - + + + e.preventDefault()}> + + Resend + + - - - -

Who do you want to remind?

-
-
+ + + +

Who do you want to remind?

+
+
-
- - ( - <> - {recipients.map((recipient) => ( - + + ( + <> + {recipients.map((recipient) => ( + + - - - {recipient.email} - + + {recipient.email} + - - - checked - ? onChange([...value, recipient.id]) - : onChange(value.filter((v) => v !== recipient.id)) - } - /> - - - ))} - - )} - /> - - + + + checked + ? onChange([...value, recipient.id]) + : onChange(value.filter((v) => v !== recipient.id)) + } + /> + + + ))} + + )} + /> + + - -
- - - - - -
-
-
-
- + + + +
+ + + ); }; diff --git a/packages/lib/server-only/2fa/setup-2fa.ts b/packages/lib/server-only/2fa/setup-2fa.ts index 23f213574..bcaa8d498 100644 --- a/packages/lib/server-only/2fa/setup-2fa.ts +++ b/packages/lib/server-only/2fa/setup-2fa.ts @@ -43,7 +43,7 @@ export const setupTwoFactorAuthentication = async ({ const secret = crypto.randomBytes(10); - const backupCodes = new Array(10) + const backupCodes = Array.from({ length: 10 }) .fill(null) .map(() => crypto.randomBytes(5).toString('hex')) .map((code) => `${code.slice(0, 5)}-${code.slice(5)}`.toUpperCase());