2024-12-11 01:12:06 +05:30
|
|
|
import React from 'react';
|
2024-12-14 17:46:29 +05:30
|
|
|
import { FormattedMessage as Message } from 'react-intl';
|
2024-12-11 01:12:06 +05:30
|
|
|
|
|
|
|
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 (
|
2024-12-14 17:46:29 +05:30
|
|
|
<>
|
2024-12-11 01:12:06 +05:30
|
|
|
{this.renderErrors()}
|
|
|
|
|
2024-12-14 17:46:29 +05:30
|
|
|
<Message id="deviceCode" defaultMessage="Device Code">
|
|
|
|
{(nodes) => (
|
|
|
|
<Input
|
|
|
|
{...this.bindField('user_code')}
|
|
|
|
icon="key"
|
|
|
|
name="user_cide"
|
|
|
|
autoFocus
|
|
|
|
required
|
|
|
|
placeholder={nodes as string}
|
|
|
|
/>
|
|
|
|
)}
|
|
|
|
</Message>
|
|
|
|
</>
|
2024-12-11 01:12:06 +05:30
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|