2024-12-14 17:46:29 +05:30
|
|
|
import React, { FC } from 'react';
|
|
|
|
import { RouteComponentProps } from 'react-router-dom';
|
2024-12-11 01:12:06 +05:30
|
|
|
import { FormattedMessage as Message, defineMessages } from 'react-intl';
|
|
|
|
|
2024-12-14 17:46:29 +05:30
|
|
|
import { Button } from 'app/components/ui/form';
|
|
|
|
import AuthTitle from 'app/components/auth/AuthTitle';
|
|
|
|
import PanelTransition from 'app/components/auth/PanelTransition';
|
|
|
|
|
|
|
|
import style from './deviceCode.scss';
|
|
|
|
import DeviceCodeBody from './DeviceCodeBody';
|
2024-12-11 01:12:06 +05:30
|
|
|
|
|
|
|
const messages = defineMessages({
|
2024-12-14 17:46:29 +05:30
|
|
|
deviceCodeTitle: 'Device Code',
|
2024-12-11 01:12:06 +05:30
|
|
|
});
|
|
|
|
|
2024-12-14 17:46:29 +05:30
|
|
|
const DeviceCode: FC<RouteComponentProps> = (props) => {
|
|
|
|
return (
|
|
|
|
<PanelTransition
|
|
|
|
key="deviceCode"
|
|
|
|
className={style.form}
|
|
|
|
Title={<AuthTitle title={messages.deviceCodeTitle} />}
|
|
|
|
Body={<DeviceCodeBody {...props} />}
|
|
|
|
Footer={
|
|
|
|
<Button type="submit">
|
2024-12-23 20:13:48 +05:30
|
|
|
<Message id="continue" defaultMessage="Continue" />
|
2024-12-14 17:46:29 +05:30
|
|
|
</Button>
|
|
|
|
}
|
|
|
|
/>
|
|
|
|
);
|
|
|
|
};
|
|
|
|
|
|
|
|
export default DeviceCode;
|