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

style(react): make mobileBreakpoint and mobileStyle props optional in ThemeProps #1262

Merged
merged 1 commit into from
Jan 21, 2021

Conversation

asastre
Copy link
Contributor

@asastre asastre commented Jan 20, 2021

Description

Make mobileBreakpoint and mobileStyle props optional in ThemeProps.

Context

Using typescript, if theme prop is modified through <WebchatSettings>, this typescript error shows up:

TS2739: Type '{}' is missing the following properties from type 'ThemeProps': mobileBreakpoint, mobileStyle

This PR solves this problem.

Approach taken / Explain the design

To document / Usage example

Testing

The pull request has no tests.

@asastre asastre merged commit aeadee3 into master Jan 21, 2021
@asastre asastre deleted the react/themeprops-type branch January 21, 2021 09:11
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.

3 participants