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

fix: Adds ability to hide language warning #1125

Merged

Conversation

skspade
Copy link
Contributor

@skspade skspade commented Jun 8, 2023

Describe

Community form should not show undetermined_language_warning warning. Since the component is shared between multiple forms a hideLanguageWarning prop was added so a specific instance can hide it.

Screenshot

Screenshot 2023-06-08 at 19-25-16 Create Community - lemmy-dev

Ticket

Closes #1078

@skspade skspade force-pushed the 1078-language-select-disable-warning branch 2 times, most recently from c9a2a43 to 1193d5b Compare June 8, 2023 23:53
@SleeplessOne1917
Copy link
Member

I think I've seen this warning in places other than just the community form. Can you check the other places the languages select component is used to make sure it's not showing up in other places it doesn't belong?

@skspade
Copy link
Contributor Author

skspade commented Jun 9, 2023

Certainly! Since I'm new to Lemmy, can you elaborate on where it doesn't belong?

Or if it's easier, tell me where it does belong

@skspade
Copy link
Contributor Author

skspade commented Jun 9, 2023

I am thinking it should only show on the settings screen for the user? Aka src/shared/components/person/settings.tsx

@SleeplessOne1917
Copy link
Member

I am thinking it should only show on the settings screen for the user? Aka src/shared/components/person/settings.tsx

Correct.

@skspade
Copy link
Contributor Author

skspade commented Jun 9, 2023

Then I'll probably swap the boolean to make it showLanguageWarning since it only needs to be in one place.

@skspade skspade force-pushed the 1078-language-select-disable-warning branch from 1193d5b to 23c4b68 Compare June 9, 2023 03:37
@skspade
Copy link
Contributor Author

skspade commented Jun 9, 2023

Should be good to go whenever

Copy link
Member

@SleeplessOne1917 SleeplessOne1917 left a comment

Choose a reason for hiding this comment

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

LGTM

@SleeplessOne1917 SleeplessOne1917 merged commit 6227b63 into LemmyNet:main Jun 10, 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.

Language warning for user preferences shows up on wrong language selector
2 participants