Skip to content

Commit

Permalink
fix(nx-dev): update component return types to ReactElement and enhanc…
Browse files Browse the repository at this point in the history
…e trial pages SEO descriptions
  • Loading branch information
ndcunningham committed Jan 9, 2025
1 parent f06fc5b commit 4161b68
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 10 deletions.
3 changes: 2 additions & 1 deletion nx-dev/nx-dev/pages/contact/sales.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@ import { useRouter } from 'next/router';
import { NextSeo } from 'next-seo';
import { Footer, Header } from '@nx/nx-dev/ui-common';
import { TalkToOurTeam } from '@nx/nx-dev/ui-contact';
import { type ReactElement } from 'react';

export function ContactSales(): JSX.Element {
export function ContactSales(): ReactElement {
const router = useRouter();

return (
Expand Down
7 changes: 4 additions & 3 deletions nx-dev/nx-dev/pages/enterprise/trial.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,21 @@ import { useRouter } from 'next/router';
import { NextSeo } from 'next-seo';
import { Footer, Header } from '@nx/nx-dev/ui-common';
import { TrialNxEnterprise } from '@nx/nx-dev/ui-enterprise';
import { type ReactElement } from 'react';

export function EnterpriseTrial(): JSX.Element {
export function EnterpriseTrial(): ReactElement {
const router = useRouter();

return (
<>
<NextSeo
title="Nx Enterprise Trial"
description="We’re here to help you find the right plan and pricing for your needs and discuss how Nx Cloud Enterprise can drive better business outcomes for your organization."
description="Accelerate your organization's journey to tighter collaboration, improved developer experience, and faster, more efficient workflows. Start your enterprise trial today and see the difference."
openGraph={{
url: 'https://nx.dev' + router.asPath,
title: 'Nx Enterprise Trial',
description:
'We’re here to help you find the right plan and pricing for your needs and discuss how Nx Cloud Enterprise can drive better business outcomes for your organization.',
"Accelerate your organization's journey to tighter collaboration, improved developer experience, and faster, more efficient workflows. Start your enterprise trial today and see the difference.",
images: [
{
url: 'https://nx.dev/socials/nx-media.png',
Expand Down
7 changes: 4 additions & 3 deletions nx-dev/nx-dev/pages/powerpack/trial.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,21 @@ import { useRouter } from 'next/router';
import { NextSeo } from 'next-seo';
import { Footer, Header } from '@nx/nx-dev/ui-common';
import { TrialNxPowerpack } from '@nx/nx-dev/ui-powerpack';
import { type ReactElement } from 'react';

export function PowerpackTrial(): JSX.Element {
export function PowerpackTrial(): ReactElement {
const router = useRouter();

return (
<>
<NextSeo
title="Powerpack Trial"
description="We’re here to help you find the right plan and pricing for your needs and discuss how Nx Cloud Enterprise can drive better business outcomes for your organization."
description="Get started with your Nx Powerpack trial! Unlock a suite of enterprise-grade extensions for the Nx CLI, designed to optimize your development workflows and boost team productivity. Let us help you find the right plan for your needs."
openGraph={{
url: 'https://nx.dev' + router.asPath,
title: 'Powerpack Trial',
description:
'We’re here to help you find the right plan and pricing for your needs and discuss how Nx Cloud Enterprise can drive better business outcomes for your organization.',
'Get started with your Nx Powerpack trial! Unlock a suite of enterprise-grade extensions for the Nx CLI, designed to optimize your development workflows and boost team productivity. Let us help you find the right plan for your needs.',
images: [
{
url: 'https://nx.dev/socials/nx-media.png',
Expand Down
7 changes: 4 additions & 3 deletions nx-dev/nx-dev/pages/whitepaper-fast-ci.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,21 @@ import {
StorybookIcon,
VmwareIcon,
} from '@nx/nx-dev/ui-icons';
import { type ReactElement } from 'react';

export function WhitePaperFastCI(): JSX.Element {
export function WhitePaperFastCI(): ReactElement {
const router = useRouter();

return (
<>
<NextSeo
title="White paper fast CI"
description="We’re here to help you find the right plan and pricing for your needs and discuss how Nx Cloud Enterprise can drive better business outcomes for your organization."
description="The world is moving fast, and monorepos are transforming development by boosting collaboration and speed. Avoid costly CI delays with workflows tailored for monorepos."
openGraph={{
url: 'https://nx.dev' + router.asPath,
title: 'White paper fast CI',
description:
'We’re here to help you find the right plan and pricing for your needs and discuss how Nx Cloud Enterprise can drive better business outcomes for your organization.',
'The world is moving fast, and monorepos are transforming development by boosting collaboration and speed. Avoid costly CI delays with workflows tailored for monorepos.',
images: [
{
url: 'https://nx.dev/socials/nx-media.png',
Expand Down

0 comments on commit 4161b68

Please sign in to comment.