Skip to content

Commit

Permalink
Add comments to prop types
Browse files Browse the repository at this point in the history
  • Loading branch information
BartoszGrajdek committed Oct 23, 2023
1 parent 6f7d2f8 commit 0b580c6
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/components/AvatarWithImagePicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ const propTypes = {
/** File name of the avatar */
originalFileName: PropTypes.string,

/** Whether navigation is focused */
isFocused: PropTypes.bool.isRequired,

...withLocalizePropTypes,
Expand Down
2 changes: 2 additions & 0 deletions src/components/OptionsSelector/BaseOptionsSelector.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ const propTypes = {

/** List styles for OptionsList */
listStyles: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.object), PropTypes.object]),

/** Whether navigation is focused */
isFocused: PropTypes.bool.isRequired,

...optionsSelectorPropTypes,
Expand Down
1 change: 1 addition & 0 deletions src/components/RoomNameInput/roomNameInputPropTypes.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ const propTypes = {
/** Whether we should wait before focusing the TextInput, useful when using transitions on Android */
shouldDelayFocus: PropTypes.bool,

/** Whether navigation is focused */
isFocused: PropTypes.bool.isRequired,
};

Expand Down
1 change: 1 addition & 0 deletions src/pages/signin/LoginForm/BaseLoginForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ const propTypes = {
/** Whether or not the sign in page is being rendered in the RHP modal */
isInModal: PropTypes.bool,

/** Whether navigation is focused */
isFocused: PropTypes.bool.isRequired,

...windowDimensionsPropTypes,
Expand Down
1 change: 1 addition & 0 deletions src/pages/workspace/WorkspaceNewRoomPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ const propTypes = {
/** A collection of objects for all policies which key policy member objects by accountIDs */
allPolicyMembers: PropTypes.objectOf(PropTypes.objectOf(policyMemberPropType)),

/** Whether navigation is focused */
isFocused: PropTypes.bool.isRequired,
};
const defaultProps = {
Expand Down

0 comments on commit 0b580c6

Please sign in to comment.