Skip to content

Commit

Permalink
small changes
Browse files Browse the repository at this point in the history
  • Loading branch information
parasharrajat committed Jul 28, 2021
1 parent 915649e commit 68cc9ce
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/components/Badge.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ import styles, {getBadgeColorStyle} from '../styles/styles';
import Text from './Text';

const propTypes = {
/** Is success type */
/** Is Success type */
success: PropTypes.bool,

/** Is success type */
/** Is Error type */
error: PropTypes.bool,

/** Whether badge is clickable */
Expand Down
2 changes: 1 addition & 1 deletion src/components/MenuItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import getButtonState from '../libs/getButtonState';
import Badge from './Badge';

const propTypes = {
// Text to be shown as badge near the right end.
/** Text to be shown as badge near the right end. */
badgeText: PropTypes.string,

/** Any additional styles to apply */
Expand Down
4 changes: 3 additions & 1 deletion src/pages/settings/InitialPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,9 @@ const defaultProps = {
network: {},
session: {},
policies: {},
userWallet: {},
userWallet: {
availableBalance: 0,
},
};

const defaultMenuItems = [
Expand Down
4 changes: 2 additions & 2 deletions src/styles/styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -2014,8 +2014,8 @@ function getBackgroundColorStyle(backgroundColor) {
/**
* Generate a style for the background color of the Badge
*
* @param {*} success
* @param {*} error
* @param {Boolean} success
* @param {Boolean} error
* @param {boolean} [isPressed=false]
* @return {Object}
*/
Expand Down

0 comments on commit 68cc9ce

Please sign in to comment.