chore: Update translations
This commit is contained in:
@ -25,9 +25,11 @@ export function PinPrompt({
|
|||||||
|
|
||||||
async function submitPin() {
|
async function submitPin() {
|
||||||
if (pin.length < 4) {
|
if (pin.length < 4) {
|
||||||
setError(formatMessage({
|
setError(
|
||||||
defaultMessage: "Pin too short"
|
formatMessage({
|
||||||
}));
|
defaultMessage: "Pin too short",
|
||||||
|
}),
|
||||||
|
);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
setError("");
|
setError("");
|
||||||
@ -57,7 +59,14 @@ export function PinPrompt({
|
|||||||
<FormattedMessage defaultMessage="Enter Pin" />
|
<FormattedMessage defaultMessage="Enter Pin" />
|
||||||
</h2>
|
</h2>
|
||||||
{subTitle}
|
{subTitle}
|
||||||
<input type="number" onChange={e => setPin(e.target.value)} value={pin} autoFocus={true} maxLength={20} minLength={4} />
|
<input
|
||||||
|
type="number"
|
||||||
|
onChange={e => setPin(e.target.value)}
|
||||||
|
value={pin}
|
||||||
|
autoFocus={true}
|
||||||
|
maxLength={20}
|
||||||
|
minLength={4}
|
||||||
|
/>
|
||||||
{error && <b className="error">{error}</b>}
|
{error && <b className="error">{error}</b>}
|
||||||
<div className="flex g8">
|
<div className="flex g8">
|
||||||
<button type="button" onClick={() => onCancel()}>
|
<button type="button" onClick={() => onCancel()}>
|
||||||
|
Reference in New Issue
Block a user