@@ -10,8 +10,8 @@ import { revalidateLogic } from '@tanstack/react-form';
1010import type { AxiosError } from 'axios' ;
1111import z from 'zod' ;
1212import { api } from '../../../shared/api/api' ;
13- import { Button } from '../../../shared/defguard-ui/components/Button/Button' ;
1413import { SizedBox } from '../../../shared/defguard-ui/components/SizedBox/SizedBox' ;
14+ import { OIDCButton } from '../../../shared/defguard-ui/components/SSOButton/OIDCButton' ;
1515import { useAppForm } from '../../../shared/defguard-ui/form' ;
1616import { ThemeSpacing } from '../../../shared/defguard-ui/types' ;
1717import { isPresent } from '../../../shared/defguard-ui/utils/isPresent' ;
@@ -86,7 +86,7 @@ export const EnrollmentStartPage = () => {
8686 < h1 > { m . enrollment_start_title ( ) } </ h1 >
8787 < p > { m . enrollment_start_subtitle ( ) } </ p >
8888 </ header >
89- < SizedBox height = { ThemeSpacing . Xl5 } />
89+ < SizedBox height = { ThemeSpacing . Xl3 } />
9090 { isPresent ( loaderData ?. url ) && isPresent ( loaderData . button_display_name ) && (
9191 < >
9292 < ContainerWithIcon icon = "globe" >
@@ -96,15 +96,12 @@ export const EnrollmentStartPage = () => {
9696 < p > { m . enrollment_start_external_subtitle ( ) } </ p >
9797 </ header >
9898 < div className = "openid-link" >
99- < a href = { loaderData . url } target = "_blank" >
100- < Button
101- size = "big"
102- iconRight = "open-in-new-window"
103- text = { m . cmp_openid_button ( {
104- provider : loaderData . button_display_name ,
105- } ) }
106- />
107- </ a >
99+ < OIDCButton
100+ url = { loaderData . url }
101+ text = { m . cmp_openid_button ( {
102+ provider : loaderData . button_display_name ,
103+ } ) }
104+ />
108105 </ div >
109106 </ ContainerWithIcon >
110107 < Divider text = { m . misc_or ( ) } orientation = "horizontal" />
0 commit comments