Skip to content

Commit

Permalink
Small cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
parasharrajat committed Jan 26, 2022
1 parent 0410ca4 commit ff1fd3e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Button.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import _ from 'underscore';
import React, {Component} from 'react';
import {Pressable, ActivityIndicator, View} from 'react-native';
import PropTypes from 'prop-types';
Expand All @@ -9,6 +8,7 @@ import Text from './Text';
import KeyboardShortcut from '../libs/KeyboardShortcut';
import Icon from './Icon';
import CONST from '../CONST';
import * as StyleUtils from '../styles/StyleUtils';

const propTypes = {
/** The text for the button label */
Expand Down Expand Up @@ -101,7 +101,7 @@ const defaultProps = {
class Button extends Component {
constructor(props) {
super(props);
this.additionalStyles = _.isArray(this.props.style) ? this.props.style : [this.props.style];
this.additionalStyles = StyleUtils.parseStyleAsArray(this.props.style);

this.renderContent = this.renderContent.bind(this);
}
Expand Down

0 comments on commit ff1fd3e

Please sign in to comment.