diff --git a/apps/web/app/dashboard2/blogs/layout.tsx b/apps/web/app/dashboard2/blogs/layout.tsx index 1950d2e27..a4e679cd6 100644 --- a/apps/web/app/dashboard2/blogs/layout.tsx +++ b/apps/web/app/dashboard2/blogs/layout.tsx @@ -7,9 +7,8 @@ export async function generateMetadata( parent: ResolvingMetadata, ): Promise { return { - title: `${MANAGE_BLOG_PAGE_HEADING} | ${ - (await parent)?.title?.absolute - }`, + title: `${MANAGE_BLOG_PAGE_HEADING} | ${(await parent)?.title + ?.absolute}`, }; } diff --git a/apps/web/app/dashboard2/pages/layout.tsx b/apps/web/app/dashboard2/pages/layout.tsx index ff4e72c99..4d47cf38c 100644 --- a/apps/web/app/dashboard2/pages/layout.tsx +++ b/apps/web/app/dashboard2/pages/layout.tsx @@ -7,9 +7,8 @@ export async function generateMetadata( parent: ResolvingMetadata, ): Promise { return { - title: `${MANAGE_PAGES_PAGE_HEADING} | ${ - (await parent)?.title?.absolute - }`, + title: `${MANAGE_PAGES_PAGE_HEADING} | ${(await parent)?.title + ?.absolute}`, }; } diff --git a/apps/web/app/dashboard2/products/layout.tsx b/apps/web/app/dashboard2/products/layout.tsx index daf605a15..7d96a6ec0 100644 --- a/apps/web/app/dashboard2/products/layout.tsx +++ b/apps/web/app/dashboard2/products/layout.tsx @@ -7,9 +7,8 @@ export async function generateMetadata( parent: ResolvingMetadata, ): Promise { return { - title: `${MANAGE_COURSES_PAGE_HEADING} | ${ - (await parent)?.title?.absolute - }`, + title: `${MANAGE_COURSES_PAGE_HEADING} | ${(await parent)?.title + ?.absolute}`, }; } diff --git a/apps/web/app/dashboard2/settings/layout.tsx b/apps/web/app/dashboard2/settings/layout.tsx index 2bbb4fc2f..b0ff93821 100644 --- a/apps/web/app/dashboard2/settings/layout.tsx +++ b/apps/web/app/dashboard2/settings/layout.tsx @@ -7,9 +7,8 @@ export async function generateMetadata( parent: ResolvingMetadata, ): Promise { return { - title: `${SITE_SETTINGS_PAGE_HEADING} | ${ - (await parent)?.title?.absolute - }`, + title: `${SITE_SETTINGS_PAGE_HEADING} | ${(await parent)?.title + ?.absolute}`, }; } diff --git a/apps/web/app/verify-domain/route.ts b/apps/web/app/verify-domain/route.ts index f71d5d993..02bccd83a 100644 --- a/apps/web/app/verify-domain/route.ts +++ b/apps/web/app/verify-domain/route.ts @@ -57,9 +57,9 @@ export async function GET(req: Request) { if (!domain) { return Response.json( { - message: `${responses.domain_doesnt_exist}: ${ - host?.split(".")[0] - }`, + message: `${responses.domain_doesnt_exist}: ${host?.split( + ".", + )[0]}`, }, { status: 404 }, ); diff --git a/apps/web/components/admin/mails/sequence-editor.tsx b/apps/web/components/admin/mails/sequence-editor.tsx index e0b488cbd..9848a860b 100644 --- a/apps/web/components/admin/mails/sequence-editor.tsx +++ b/apps/web/components/admin/mails/sequence-editor.tsx @@ -633,11 +633,11 @@ const SequenceEditor = ({ value: tag.tag, })) : triggerType === "PRODUCT_PURCHASED" - ? products.map((product) => ({ - label: product.title, - value: product.courseId, - })) - : [] + ? products.map((product) => ({ + label: product.title, + value: product.courseId, + })) + : [] } /> )} diff --git a/apps/web/components/admin/page-editor/index.tsx b/apps/web/components/admin/page-editor/index.tsx index e62f6b78e..25b213762 100644 --- a/apps/web/components/admin/page-editor/index.tsx +++ b/apps/web/components/admin/page-editor/index.tsx @@ -570,8 +570,8 @@ function PageEditor({ typeof page.draftRobotsAllowed === "boolean" ? page.draftRobotsAllowed : typeof page.robotsAllowed === "boolean" - ? page.robotsAllowed - : true + ? page.robotsAllowed + : true } socialImage={page.draftSocialImage || {}} onClose={(e) => setLeftPaneContent("none")} diff --git a/apps/web/graphql/settings/helpers.ts b/apps/web/graphql/settings/helpers.ts index a141964d9..67544063d 100644 --- a/apps/web/graphql/settings/helpers.ts +++ b/apps/web/graphql/settings/helpers.ts @@ -8,8 +8,8 @@ import { UIConstants, } from "@courselit/common-models"; -const currencyISOCodes = currencies.map((currency) => - currency.isoCode?.toLowerCase(), +const currencyISOCodes = currencies.map( + (currency) => currency.isoCode?.toLowerCase(), ); const verifyCurrencyISOCode = (isoCode: string) => { diff --git a/packages/common-widgets/src/banner/widget.tsx b/packages/common-widgets/src/banner/widget.tsx index 7d6bf007f..3e2692b16 100644 --- a/packages/common-widgets/src/banner/widget.tsx +++ b/packages/common-widgets/src/banner/widget.tsx @@ -72,8 +72,8 @@ export default function Widget({ : undefined : description : product.description - ? JSON.parse(product.description as string) - : undefined; + ? JSON.parse(product.description as string) + : undefined; let direction: any; switch (alignment) { diff --git a/packages/common-widgets/src/email-form/widget.tsx b/packages/common-widgets/src/email-form/widget.tsx index 91ad94ba7..a78588a7c 100644 --- a/packages/common-widgets/src/email-form/widget.tsx +++ b/packages/common-widgets/src/email-form/widget.tsx @@ -54,8 +54,8 @@ const Widget = ({ alignment === "center" ? "center" : alignment === "right" - ? "flex-end" - : "flex-start"; + ? "flex-end" + : "flex-start"; useEffect(() => { if (state.config.turnstileSiteKey) { diff --git a/packages/common-widgets/src/header/widget/index.tsx b/packages/common-widgets/src/header/widget/index.tsx index 94495ba10..8006579b4 100644 --- a/packages/common-widgets/src/header/widget/index.tsx +++ b/packages/common-widgets/src/header/widget/index.tsx @@ -77,8 +77,8 @@ export default function Widget({ state, settings }: WidgetProps) { linkAlignment === "right" ? "justify-end" : linkAlignment === "center" - ? "justify-center" - : "justify-start" + ? "justify-center" + : "justify-start" }`} style={{ gap: `${spacingBetweenLinks}px`, diff --git a/packages/common-widgets/src/hero/widget.tsx b/packages/common-widgets/src/hero/widget.tsx index 956d87d99..7c3c14f1f 100644 --- a/packages/common-widgets/src/hero/widget.tsx +++ b/packages/common-widgets/src/hero/widget.tsx @@ -198,15 +198,15 @@ export default function Widget({ descriptionFontSize === 0 ? "text-base" : descriptionFontSize === 1 - ? "text-lg lg:text-xl" - : `text-${ - descriptionFontSize - - 1 === - 1 - ? "" - : descriptionFontSize - - 1 - }xl lg:text-${descriptionFontSize}xl`, + ? "text-lg lg:text-xl" + : `text-${ + descriptionFontSize - + 1 === + 1 + ? "" + : descriptionFontSize - + 1 + }xl lg:text-${descriptionFontSize}xl`, buttonAction && buttonCaption ? "mb-8" : "mb-0",