@@ -8,7 +8,7 @@ import { useNavigate } from 'react-router-dom'
88import MemoizedAuthenticationQR from '../../components/AuthenticationQR'
99import SSIPrimaryButton from '../../components/SSIPrimaryButton'
1010import { useMediaQuery } from 'react-responsive'
11- import { NonMobile } from '../../index'
11+ import { MobileOS , NonMobile , NonMobileOS } from '../../index'
1212import { useFlowRouter } from '../../router/flow-router'
1313import { useEcosystem } from '../../ecosystem/ecosystem'
1414import { SSICredentialVerifyFromVPRequestPageConfig } from '../../ecosystem/ecosystem-config'
@@ -66,7 +66,9 @@ export default function SSICredentialVerifyFromVPRequestPage(): React.ReactEleme
6666 height : '100%' ,
6767 backgroundColor : '#FFFFFF' ,
6868 alignItems : 'center' ,
69- justifyContent : 'center'
69+ justifyContent : 'center' ,
70+ marginLeft : 4 ,
71+ marginRight : 4 ,
7072 } } >
7173 < div style = { {
7274 display : 'flex' ,
@@ -85,35 +87,48 @@ export default function SSICredentialVerifyFromVPRequestPage(): React.ReactEleme
8587 marginBottom : '25%' ,
8688 marginTop : '25%'
8789 } } >
88- < div style = { { flexGrow : 1 , display : 'flex' , justifyContent : 'center' , marginBottom : 0 } } >
89- { < MemoizedAuthenticationQR ecosystem = { ecosystem }
90- fgColor = { 'rgba(50, 57, 72, 1)' }
91- width = { pageConfig . rightPaneLeftPane ?. qrCode ?. width ?? 300 }
92- vpDefinitionId = { flowRouter . getVpDefinitionId ( ) }
93- onAuthRequestRetrieved = { console . log }
94- onSignInComplete = { onSignInComplete }
95- setQrCodeData = { setDeepLink } /> }
96- </ div >
97- < div style = { {
98- paddingTop : 20 ,
99- paddingBottom : 20 ,
100- display : 'flex' ,
101- flexDirection : 'column' ,
102- alignItems : 'center' ,
103- gap : '1rem'
104- } } >
105- < DeepLinkButton link = { deepLink } buttonType = { "secondary" } textColor = { pageConfig . textColor } style = { { width : 300 } } />
106- < SSIPrimaryButton
107- caption = { t ( 'credential_verify_request_right_pane_button_caption' ) }
108- onClick = { async ( ) => {
109- navigate ( '/information/manual/request' ) ;
110- } }
111- />
112- </ div >
113-
11490
115- < Text style = { { flexGrow : 1 } } className = { `${ style . pReduceLineSpace } poppins-semi-bold-16` }
116- lines = { t ( 'credential_verify_request_right_pane_bottom_paragraph' ) . split ( '\n' ) } />
91+ < div style = { { flexGrow : 1 , display : 'flex' , justifyContent : 'center' , marginBottom : 0 } } >
92+ < NonMobileOS >
93+ < div style = { { flexGrow : 1 , display : 'flex' , justifyContent : 'center' , alignItems : 'center' } } >
94+ { /*Whether the QR code is shown (mobile) is handled in the component itself */ }
95+ { < MemoizedAuthenticationQR ecosystem = { ecosystem }
96+ fgColor = { 'rgba(50, 57, 72, 1)' }
97+ width = { pageConfig . rightPaneLeftPane ?. qrCode ?. width ?? 300 }
98+ vpDefinitionId = { flowRouter . getVpDefinitionId ( ) }
99+ onAuthRequestRetrieved = { console . log }
100+ onSignInComplete = { onSignInComplete }
101+ setQrCodeData = { setDeepLink } /> }
102+ </ div >
103+ </ NonMobileOS >
104+ < MobileOS >
105+ { < MemoizedAuthenticationQR ecosystem = { ecosystem }
106+ vpDefinitionId = { flowRouter . getVpDefinitionId ( ) }
107+ onAuthRequestRetrieved = { console . log }
108+ onSignInComplete = { onSignInComplete }
109+ setQrCodeData = { setDeepLink } /> }
110+ < div style = { { gap : 24 , display : 'flex' , flexDirection : 'column' , alignItems : 'center' , overflow : 'hidden' } } >
111+ < DeepLinkButton style = { { flexGrow : 1 } } link = { deepLink } />
112+ </ div >
113+ </ MobileOS >
114+ </ div >
115+ < div style = { {
116+ paddingTop : 40 ,
117+ paddingBottom : 20 ,
118+ display : 'flex' ,
119+ flexDirection : 'column' ,
120+ alignItems : 'center' ,
121+ gap : '1rem'
122+ } } >
123+ < SSIPrimaryButton
124+ caption = { t ( 'credential_verify_request_right_pane_button_caption' ) }
125+ onClick = { async ( ) => {
126+ navigate ( '/information/manual/request' )
127+ } }
128+ />
129+ < Text style = { { flexGrow : 1 } } className = { `${ style . pReduceLineSpace } poppins-semi-bold-16` }
130+ lines = { t ( 'credential_verify_request_right_pane_bottom_paragraph' ) . split ( '\n' ) } />
131+ </ div >
117132 </ div >
118133 < div style = { {
119134 display : 'flex' ,
0 commit comments