Skip to content

Commit

Permalink
Rename buttonStyles to innerStyles
Browse files Browse the repository at this point in the history
  • Loading branch information
Amal Nazeem committed Jan 11, 2022
1 parent 4545fb7 commit 6ddfd43
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/components/Button.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ const propTypes = {
]),

/** Additional button styles. Specific to the OpacityView of button */
buttonStyles: PropTypes.arrayOf(PropTypes.object),
innerStyles: PropTypes.arrayOf(PropTypes.object),

/** Additional text styles */
textStyles: PropTypes.arrayOf(PropTypes.object),
Expand Down Expand Up @@ -85,7 +85,7 @@ const defaultProps = {
onPressOut: () => {},
pressOnEnter: false,
style: [],
buttonStyles: [],
innerStyles: [],
textStyles: [],
success: false,
danger: false,
Expand Down Expand Up @@ -199,7 +199,7 @@ class Button extends Component {
(this.props.danger && hovered) ? styles.buttonDangerHovered : undefined,
this.props.shouldRemoveRightBorderRadius ? styles.noRightBorderRadius : undefined,
this.props.shouldRemoveLeftBorderRadius ? styles.noLeftBorderRadius : undefined,
...this.props.buttonStyles,
...this.props.innerStyles,
]}
>
{this.renderContent()}
Expand Down
2 changes: 1 addition & 1 deletion src/pages/ReportSettingsPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ class ReportSettingsPage extends Component {
}}
style={[styles.ml2]}
textStyles={[styles.label]}
buttonStyles={[styles.reportSettingsChangeNameButton]}
innerStyles={[styles.reportSettingsChangeNameButton]}
isDisabled={Boolean(
shouldDisableRename
|| this.state.newRoomName === this.props.report.reportName
Expand Down

0 comments on commit 6ddfd43

Please sign in to comment.