33 lines
947 B
TypeScript
Raw Normal View History

import React from 'react';
import { FormattedMessage as Message } from 'react-intl';
import { Input } from 'app/components/ui/form';
import BaseAuthBody from 'app/components/auth/BaseAuthBody';
export default class DeviceCodeBody extends BaseAuthBody {
static displayName = 'DeviceCodeBody';
static panelId = 'deviceCode';
autoFocusField = 'user_code';
render() {
return (
<>
{this.renderErrors()}
2024-12-23 12:33:41 +01:00
<Message id="enterDeviceCode" defaultMessage="Enter Device Code">
{(nodes) => (
<Input
{...this.bindField('user_code')}
icon="key"
autoFocus
required
placeholder={nodes as string}
/>
)}
</Message>
</>
);
}
}