Skip to content

Commit

Permalink
refactor(ModeIcon prop): Make ModeIcon prop required.
Browse files Browse the repository at this point in the history
  • Loading branch information
binh-dam-ibigroup committed Apr 30, 2020
1 parent 685a484 commit 02fef27
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/components/form/connected-settings-selector-panel.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import UserTripSettings from './user-trip-settings'

class ConnectedSettingsSelectorPanel extends Component {
static propTypes = {
ModeIcon: PropTypes.elementType
ModeIcon: PropTypes.elementType.isRequired
}

render () {
Expand Down
2 changes: 1 addition & 1 deletion lib/components/mobile/options-screen.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { MobileScreens, setMobileScreen } from '../../actions/ui'

class MobileOptionsScreen extends Component {
static propTypes = {
ModeIcon: PropTypes.elementType
ModeIcon: PropTypes.elementType.isRequired
}

_planTripClicked = () => {
Expand Down

0 comments on commit 02fef27

Please sign in to comment.