You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
session-desktop/ts/components/session/SessionQRModal.tsx

49 lines
1.0 KiB
TypeScript

import React from 'react';
import { QRCode } from 'react-qr-svg';
import { SessionModal } from './SessionModal';
interface Props {
value: string;
}
export class SessionQRModal extends React.Component<Props> {
constructor(props: any) {
super(props);
}
public render() {
const { value } = this.props;
console.log('skbsvbsgb');
console.log('skbsvbsgb');
console.log('skbsvbsgb');
return (
<SessionModal
title={window.i18n('QRCodeTitle')}
onOk={() => null}
onClose={() => null}
>
<div className="spacer-sm"></div>
<div className='qr-dialog__description text-subtle'>
<p>
{window.i18n('QRCodeDescription')}
</p>
</div>
<div className="spacer-lg"></div>
<div id="qr">
<QRCode
value={value}
bgColor="#FFFFFF"
fgColor="#000000"
level="L"
/>
</div>
</SessionModal>
);
}
}