Skip to content
This repository has been archived by the owner on Jul 24, 2023. It is now read-only.

Commit

Permalink
feat(ContactPage): improve error labels
Browse files Browse the repository at this point in the history
  • Loading branch information
CanRau committed Nov 7, 2020
1 parent 0b69ace commit d53687f
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions src/templates/ContactPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,13 @@ const ContactPage = (props) => {
submitLabel={page.frontmatter.form.contact.submitLabel}
lang={props.pageContext.lang}
emailErrorLabel={page.frontmatter.form.errors.emailErrorLabel}
requiredLabel={page.frontmatter.form.errors.requiredLabel}
consentErrorLabel={page.frontmatter.form.errors.consentErrorLabel}
bbcodeErrorLabel={page.frontmatter.form.errors.bbcodeErrorLabel}
minMessageLength={20}
minLengthErrorLabel={
page.frontmatter.form.errors.minLengthErrorLabel
}
toQuickLabel={page.frontmatter.form.errors.toQuickLabel}
generalErrorLabel={page.frontmatter.form.errors.generalErrorLabel}
endpoint={
isProduction
Expand Down Expand Up @@ -146,6 +152,7 @@ const ContactPage = (props) => {
submitLabel={page.frontmatter.form.newsletter.submitLabel}
lang={props.pageContext.lang}
emailErrorLabel={page.frontmatter.form.errors.emailErrorLabel}
consentErrorLabel={page.frontmatter.form.errors.consentErrorLabel}
existingLabel={page.frontmatter.form.errors.existingLabel}
generalErrorLabel={page.frontmatter.form.errors.generalErrorLabel}
endpoint={
Expand Down Expand Up @@ -225,7 +232,10 @@ export const query = graphql`
errors {
emailErrorLabel
existingLabel
requiredLabel
minLengthErrorLabel
consentErrorLabel
bbcodeErrorLabel
toQuickLabel
generalErrorLabel
}
}
Expand Down

0 comments on commit d53687f

Please sign in to comment.