Skip to content

Commit

Permalink
bugfix(website): fix newsletter signup form (#842)
Browse files Browse the repository at this point in the history
  • Loading branch information
mkue authored Jun 1, 2024
1 parent 1de3d84 commit 0b02ac8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export default async function Page({ params }: DefaultPageProps) {
translations={{
firstname: translator.t('updates.firstname'),
email: translator.t('updates.email'),
updatesSubmitButton: translator.t('updates.submit-button'),
submitButton: translator.t('updates.submit-button'),
toastMessage: translator.t('updates.newsletter-updated-toast'),
toastErrorMessage: translator.t('updates.newsletter-error-toast'),
}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ type PersonalInfoFormProps = {
translations: {
firstname: string;
email: string;
updatesSubmitButton: string;
submitButton: string;
toastMessage: string;
toastErrorMessage: string;
};
Expand All @@ -24,7 +24,6 @@ export function SubscriptionInfoForm({ lang, translations }: PersonalInfoFormPro

const formSchema = z.object({
firstname: z.string(),
lastname: z.string(),
email: z.string().email(),
});

Expand Down Expand Up @@ -90,7 +89,7 @@ export function SubscriptionInfoForm({ lang, translations }: PersonalInfoFormPro
color="accent"
className="mt-4 rounded-full"
>
{translations.updatesSubmitButton}
{translations.submitButton}
</Button>
</form>
</Form>
Expand Down

0 comments on commit 0b02ac8

Please sign in to comment.