Device manager - add verification details to session details (PSG-644) (#9187)
* extract security card for session verification to shared comp * add card to device details * tidy * fix section spacing * update snapshots
This commit is contained in:
parent
ba171f1fe5
commit
9bf77963ee
8 changed files with 250 additions and 23 deletions
|
@ -15,14 +15,15 @@ limitations under the License.
|
|||
*/
|
||||
|
||||
import React from 'react';
|
||||
import { IMyDevice } from 'matrix-js-sdk/src/matrix';
|
||||
|
||||
import { formatDate } from '../../../../DateUtils';
|
||||
import { _t } from '../../../../languageHandler';
|
||||
import Heading from '../../typography/Heading';
|
||||
import { DeviceVerificationStatusCard } from './DeviceVerificationStatusCard';
|
||||
import { DeviceWithVerification } from './types';
|
||||
|
||||
interface Props {
|
||||
device: IMyDevice;
|
||||
device: DeviceWithVerification;
|
||||
}
|
||||
|
||||
interface MetadataTable {
|
||||
|
@ -51,6 +52,7 @@ const DeviceDetails: React.FC<Props> = ({ device }) => {
|
|||
return <div className='mx_DeviceDetails'>
|
||||
<section className='mx_DeviceDetails_section'>
|
||||
<Heading size='h3'>{ device.display_name ?? device.device_id }</Heading>
|
||||
<DeviceVerificationStatusCard device={device} />
|
||||
</section>
|
||||
<section className='mx_DeviceDetails_section'>
|
||||
<p className='mx_DeviceDetails_sectionHeading'>{ _t('Session details') }</p>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue