Device manager - add verify current session button (PSG-527) (#9252)
* add verify current session button * i18n * strict type issues
This commit is contained in:
parent
8bc03aabba
commit
61904778f5
9 changed files with 113 additions and 25 deletions
|
@ -28,10 +28,11 @@ import { DeviceWithVerification } from './types';
|
|||
interface Props {
|
||||
device?: DeviceWithVerification;
|
||||
isLoading: boolean;
|
||||
onVerifyCurrentDevice: () => void;
|
||||
}
|
||||
|
||||
const CurrentDeviceSection: React.FC<Props> = ({
|
||||
device, isLoading,
|
||||
device, isLoading, onVerifyCurrentDevice,
|
||||
}) => {
|
||||
const [isExpanded, setIsExpanded] = useState(false);
|
||||
|
||||
|
@ -52,7 +53,7 @@ const CurrentDeviceSection: React.FC<Props> = ({
|
|||
</DeviceTile>
|
||||
{ isExpanded && <DeviceDetails device={device} /> }
|
||||
<br />
|
||||
<DeviceVerificationStatusCard device={device} />
|
||||
<DeviceVerificationStatusCard device={device} onVerifyDevice={onVerifyCurrentDevice} />
|
||||
</>
|
||||
}
|
||||
</SettingsSubsection>;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue