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 help label to edit in place #183

Merged
merged 5 commits into from
Jun 18, 2024
Merged

Conversation

florianduros
Copy link
Member

@florianduros florianduros commented Jun 18, 2024

Copy link

cloudflare-workers-and-pages bot commented Jun 18, 2024

Deploying compound-web with  Cloudflare Pages  Cloudflare Pages

Latest commit: 9a828f6
Status: ✅  Deploy successful!
Preview URL: https://80a0ec76.compound-web.pages.dev
Branch Preview URL: https://florianduros-edit-in-place.compound-web.pages.dev

View logs

@florianduros florianduros force-pushed the florianduros/edit-in-place branch from d8902f6 to 69b9981 Compare June 18, 2024 08:49
@florianduros florianduros marked this pull request as ready for review June 18, 2024 08:53
@florianduros florianduros requested a review from a team as a code owner June 18, 2024 08:53
@florianduros florianduros requested review from dbkr and t3chguy and removed request for a team June 18, 2024 08:53
# Conflicts:
#	src/components/Form/Controls/EditInPlace/EditInPlace.test.tsx
#	src/components/Form/Controls/EditInPlace/EditInPlace.tsx
@florianduros florianduros force-pushed the florianduros/edit-in-place branch from f4b0a28 to accaa1a Compare June 18, 2024 15:20
@florianduros florianduros force-pushed the florianduros/edit-in-place branch from accaa1a to 37666a6 Compare June 18, 2024 15:25
const labels: JSX.Element[] = [];
if (error) {
labels.push(
<div className={styles["caption-line"]} key={error}>
Copy link
Member

Choose a reason for hiding this comment

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

This is probably okay, but I would go for static keys like key="error" because technically nothing is stopping two labels from having the same text. It also allows React to produce a more fine-grained diff when the text of a label changes.

@florianduros florianduros force-pushed the florianduros/edit-in-place branch from 37666a6 to 9a828f6 Compare June 18, 2024 15:35
@florianduros florianduros merged commit bf03f77 into main Jun 18, 2024
6 checks passed
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