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

WithPlaceholder component #283

Merged
merged 14 commits into from
Sep 15, 2023

Conversation

mollpo
Copy link
Contributor

@mollpo mollpo commented Sep 15, 2023

No description provided.

@mollpo mollpo changed the title WithPlacholder component WithPlaceholder component Sep 15, 2023
@alexlanz alexlanz self-requested a review September 15, 2023 11:36
src/components/content/WithPlaceholder/WithPlaceholder.tsx Outdated Show resolved Hide resolved
* This component validates the content and displays a placeholder if the content is not valid e.g. empty, null or undefined.
*/
export function WithPlaceholder({
children,
Copy link
Member

Choose a reason for hiding this comment

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

We normally try to put the children parameter as last parameter.

src/components/content/WithPlaceholder/WithPlaceholder.tsx Outdated Show resolved Hide resolved
@mollpo mollpo requested a review from alexlanz September 15, 2023 14:48
@alexlanz alexlanz merged commit 8176a0a into aboutbits:main Sep 15, 2023
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