Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

✨ Add big text teaser component #1890 #1913

Merged
merged 5 commits into from
Oct 9, 2023
Merged

✨ Add big text teaser component #1890 #1913

merged 5 commits into from
Oct 9, 2023

Conversation

fernandolucchesi
Copy link
Contributor

@fernandolucchesi fernandolucchesi requested a review from a team as a code owner October 2, 2023 16:30
'Missing content!',
subtitle: `Text block component.`,
title: plainTitle || 'Missing title/content',
subtitle: isBigText ? 'Text block component (BIG TEXT)' : 'Text block component',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✨🧹✨

}
return true
}),
hidden: ({ parent }: TeaserDocument) => !parent.isBigText,
},
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't we use the Rule.custom((value: PortableTextBlock[]) => validateCharCounterEditor(value, 600)).warning() and
Rule.custom((value: PortableTextBlock[]) => validateCharCounterEditor(value, 600)) for text and bigText.. seems like no difference to me.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

one is a warning, the other is required

@fernandolucchesi fernandolucchesi merged commit 72092c9 into main Oct 9, 2023
2 checks passed
@millianapia millianapia deleted the fer/1890 branch February 15, 2024 15:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants