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: use undefined instead of "unspecified" for initialColorMode #856

Merged
merged 2 commits into from Jul 27, 2023

Conversation

rosvik
Copy link
Contributor

@rosvik rosvik commented Jul 26, 2023

PR Creator Checklist

Ensure you've checked the following before submitting your PR:

  • You've discussed making your changes with a member of the dev team per contributing rules in the README
  • Your changes are free of any lint errors
  • Your changes are free of any typescript errors
  • You've tested your changes

Summary

Please provide a summary of what your PR does

This changes the interfaces ITheme field initialColorMode to accept undefined instead if the string "unspecified", which caused typescript errors several places.

Since undefined is supported by keyboardAppearance, ActionSheets and tint (which is where this field used today), I think this is a more sensible fallback for themes without a initalColorMode.

Screenshots

If the UI has been changed, include screenshots.
We will not review your PR without screenshots if they are applicable.

Not applicable.

Test Plan

Please documemnt the steps required to test your PR

There shouldn't be any visible changes.

Since undefined is supported by keyboardAppearance, ActionSheets and
tint (which is where this field used today), I think this is a more 
sensible fallback for themes without a `initalColorMode`
@joshua-davis-rose
Copy link
Contributor

Seems reasonable to me.

@gkasdorf gkasdorf merged commit 50bcb8a into Memmy-App:main Jul 27, 2023
2 of 3 checks passed
@rosvik rosvik deleted the rosvik/fix-ts-lint-errors branch July 27, 2023 08:14
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.

None yet

3 participants