From fb8e09104325fb2288b5fcf65b203eeb9326da7e Mon Sep 17 00:00:00 2001 From: giancarlo Date: Sat, 20 Apr 2024 13:31:07 +0800 Subject: [PATCH] Refactor UI component and improve configuration handling Refactored the components in the site header account section and page.tsx to improve readability. Updated the WordPress client to handle date types correctly. Adjusted the keystatic storage kind to default to 'local' if not specified in the environment variables. --- .../_components/site-header-account-section.tsx | 8 ++++++-- apps/web/app/(marketing)/page.tsx | 9 +++++++-- packages/cms/keystatic/src/keystatic.config.ts | 2 +- packages/cms/wordpress/src/wp-client.ts | 4 ++-- 4 files changed, 16 insertions(+), 7 deletions(-) diff --git a/apps/web/app/(marketing)/_components/site-header-account-section.tsx b/apps/web/app/(marketing)/_components/site-header-account-section.tsx index 52c921faa..7c10175cc 100644 --- a/apps/web/app/(marketing)/_components/site-header-account-section.tsx +++ b/apps/web/app/(marketing)/_components/site-header-account-section.tsx @@ -79,10 +79,14 @@ function AuthButtons() { - diff --git a/apps/web/app/(marketing)/page.tsx b/apps/web/app/(marketing)/page.tsx index 41f753084..9d0f6a292 100644 --- a/apps/web/app/(marketing)/page.tsx +++ b/apps/web/app/(marketing)/page.tsx @@ -12,6 +12,7 @@ import { import { PricingTable } from '@kit/billing-gateway/marketing'; import { Button } from '@kit/ui/button'; import { Heading } from '@kit/ui/heading'; +import { Trans } from '@kit/ui/trans'; import { cn } from '@kit/ui/utils'; import billingConfig from '~/config/billing.config'; @@ -338,13 +339,17 @@ function MainCallToActionButton() { return (
- +