From f675e7992a9ca0dc5888370920e0f29fa0e50d56 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Wed, 12 Jan 2022 12:03:24 -0600 Subject: [PATCH] MfaForm: improve styles and usability --- app/soapbox/components/button.js | 2 + app/soapbox/features/security/mfa_form.js | 74 +++++++++++++++-------- app/soapbox/locales/en.json | 8 +-- app/styles/components/mfa_form.scss | 27 +++++++-- app/styles/forms.scss | 14 ----- 5 files changed, 75 insertions(+), 50 deletions(-) diff --git a/app/soapbox/components/button.js b/app/soapbox/components/button.js index 43ca98588..25e116154 100644 --- a/app/soapbox/components/button.js +++ b/app/soapbox/components/button.js @@ -8,6 +8,7 @@ import Icon from './icon'; export default class Button extends React.PureComponent { static propTypes = { + type: PropTypes.string, text: PropTypes.node, onClick: PropTypes.func, to: PropTypes.string, @@ -54,6 +55,7 @@ export default class Button extends React.PureComponent { const btn = (