Skip to content

Commit

Permalink
change icon props name
Browse files Browse the repository at this point in the history
  • Loading branch information
hungvu193 committed Aug 11, 2023
1 parent 5ea39f2 commit ba79828
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/components/Icon/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ const propTypes = {
inline: PropTypes.bool,

/** Is icon hovered */
isHovered: PropTypes.bool,
hovered: PropTypes.bool,

/** Is icon pressed */
isPressed: PropTypes.bool,
pressed: PropTypes.bool,

// eslint-disable-next-line react/forbid-prop-types
additionalStyles: PropTypes.arrayOf(PropTypes.object),
Expand All @@ -43,8 +43,8 @@ const defaultProps = {
small: false,
inline: false,
additionalStyles: [],
isHovered: false,
isPressed: false,
hovered: false,
pressed: false,
};

// We must use a class component to create an animatable component with the Animated API
Expand All @@ -66,8 +66,8 @@ class Icon extends PureComponent {
width={width}
height={height}
fill={this.props.fill}
hovered={this.props.isHovered.toString()}
pressed={this.props.isPressed.toString()}
hovered={this.props.hovered.toString()}
pressed={this.props.pressed.toString()}
/>
</View>
</View>
Expand All @@ -83,8 +83,8 @@ class Icon extends PureComponent {
width={width}
height={height}
fill={this.props.fill}
hovered={this.props.isHovered.toString()}
pressed={this.props.isPressed.toString()}
hovered={this.props.hovered.toString()}
pressed={this.props.pressed.toString()}
/>
</View>
);
Expand Down

0 comments on commit ba79828

Please sign in to comment.