chore(web): display recovery code on hardware security keys section

This commit is contained in:
Karol Sójko
2023-04-20 13:19:49 +02:00
parent 922a4a2d5d
commit 862db49c32

View File

@@ -12,6 +12,7 @@ import Button from '@/Components/Button/Button'
import U2FAddDeviceView from '../U2FAddDeviceView'
import U2FDevicesList from './U2FDevicesList'
import ModalOverlay from '@/Components/Modal/ModalOverlay'
import RecoveryCodeBanner from '@/Components/RecoveryCodeBanner/RecoveryCodeBanner'
type Props = {
application: WebApplication
@@ -67,6 +68,13 @@ const U2FView: FunctionComponent<Props> = ({ application, userProvider }) => {
onClick={handleAddDeviceClick}
/>
</PreferencesSegment>
{devices.length > 0 && (
<PreferencesSegment>
<div className="mt-3">
<RecoveryCodeBanner application={application} />
</div>
</PreferencesSegment>
)}
</PreferencesGroup>
<ModalOverlay isOpen={showDeviceAddingModal}>
<U2FAddDeviceView