Fix minor bugs

This commit is contained in:
dominik-zeglen 2019-12-04 15:17:54 +01:00
parent 214a44d4b1
commit 44bb4be1fa
3 changed files with 5 additions and 5 deletions

View file

@ -1,6 +1,6 @@
msgid ""
msgstr ""
"POT-Creation-Date: 2019-12-04T10:13:32.661Z\n"
"POT-Creation-Date: 2019-12-04T14:17:34.264Z\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"MIME-Version: 1.0\n"
@ -1872,10 +1872,10 @@ msgid "Change photo"
msgstr ""
#: build/locale/src/staff/components/StaffPassword/StaffPassword.json
#. [src.staff.components.StaffPassword.1434811103] - utton
#. [src.staff.components.StaffPassword.1434811103] - button
#. defaultMessage is:
#. Change your password
msgctxt " utton"
msgctxt "button"
msgid "Change your password"
msgstr ""

View file

@ -25,7 +25,7 @@ const StaffPassword: React.FC<StaffPasswordProps> = ({ onChangePassword }) => {
<Button color="primary" onClick={onChangePassword}>
<FormattedMessage
defaultMessage="Change your password"
description=" utton"
description="button"
/>
</Button>
}

View file

@ -90,7 +90,7 @@ const StaffPasswordResetDialog: React.FC<StaffPasswordResetDialogProps> = ({
<FormattedMessage {...buttonMessages.back} />
</Button>
<ConfirmButton
disabled={!(data.newPassword.length >= 8)}
disabled={data.newPassword.length < 8}
transitionState={confirmButtonState}
color="primary"
variant="contained"