Skip to content

Commit

Permalink
style: add missing documentation for props
Browse files Browse the repository at this point in the history
  • Loading branch information
BeeMargarida committed May 22, 2023
1 parent 152daf1 commit c07527c
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/components/PressableWithDelayToggle.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,30 +14,40 @@ import withLocalize, {withLocalizePropTypes} from './withLocalize';
import withDelayToggleButtonState, {withDelayToggleButtonStatePropTypes} from './withDelayToggleButtonState';

const propTypes = {
/** The text to display */
text: PropTypes.string,

/** The text to display once the pressable is pressed */
textChecked: PropTypes.string,

/** The tooltip text to display */
tooltipText: PropTypes.string,

/** The tooltip text to display once the pressable is pressed */
tooltipTextChecked: PropTypes.string,

/** Styles to apply to the text */
/** Styles to apply to the container */
// eslint-disable-next-line react/forbid-prop-types
styles: PropTypes.arrayOf(PropTypes.object),

/** Styles to apply to the text */
// eslint-disable-next-line react/forbid-prop-types
textStyles: PropTypes.arrayOf(PropTypes.object),

/** Styles to apply to the icon */
// eslint-disable-next-line react/forbid-prop-types
iconStyles: PropTypes.arrayOf(PropTypes.object),

/** Callback to be called on onPress */
onPress: PropTypes.func.isRequired,

/** The icon to display */
icon: PropTypes.func,

/** The icon to display once the pressable is pressed */
iconChecked: PropTypes.func,

/** If the component should be inline with text or not */
inline: PropTypes.bool,

...withLocalizePropTypes,
Expand Down

0 comments on commit c07527c

Please sign in to comment.