diff options
author | Starfall <us@starfall.systems> | 2021-01-07 10:25:39 -0600 |
---|---|---|
committer | Starfall <us@starfall.systems> | 2021-01-07 10:25:39 -0600 |
commit | 29227b32e150894e15098bcf216b1f5c08763200 (patch) | |
tree | afa3ac9c52a63ca672e619876c84cf59f2dbb36f /app/javascript/flavours/glitch/components | |
parent | 6ed4e874c5ace36344f77b3f096c4089d9b11e01 (diff) | |
parent | d42e7e01dcd464f80637682d4eee6e5a7f36f26e (diff) |
Merge remote-tracking branch 'glitchsoc/master' into main
Diffstat (limited to 'app/javascript/flavours/glitch/components')
-rw-r--r-- | app/javascript/flavours/glitch/components/button.js | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/app/javascript/flavours/glitch/components/button.js b/app/javascript/flavours/glitch/components/button.js index cd6528f58..b1815c3e1 100644 --- a/app/javascript/flavours/glitch/components/button.js +++ b/app/javascript/flavours/glitch/components/button.js @@ -10,17 +10,11 @@ export default class Button extends React.PureComponent { disabled: PropTypes.bool, block: PropTypes.bool, secondary: PropTypes.bool, - size: PropTypes.number, className: PropTypes.string, title: PropTypes.string, - style: PropTypes.object, children: PropTypes.node, }; - static defaultProps = { - size: 36, - }; - handleClick = (e) => { if (!this.props.disabled) { this.props.onClick(e); @@ -44,12 +38,6 @@ export default class Button extends React.PureComponent { disabled: this.props.disabled, onClick: this.handleClick, ref: this.setRef, - style: { - padding: `0 ${this.props.size / 2.25}px`, - height: `${this.props.size}px`, - lineHeight: `${this.props.size}px`, - ...this.props.style, - }, }; if (this.props.title) attrs.title = this.props.title; |