@@ -18,10 +18,10 @@ import { MessageBoxType } from '../../../shared/components/layout/MessageBox/typ
1818import { deviceBreakpoints } from '../../../shared/constants' ;
1919import { CopyField } from '../../../shared/defguard-ui/components/Layout/CopyField/CopyField' ;
2020import { MessageBox } from '../../../shared/defguard-ui/components/Layout/MessageBox/MessageBox' ;
21- import { useToaster } from '../../../shared/defguard-ui/hooks/toasts/useToaster' ;
2221import { isPresent } from '../../../shared/defguard-ui/utils/isPresent' ;
2322import { useApi } from '../../../shared/hooks/api/useApi' ;
2423import { useClipboard } from '../../../shared/hooks/useClipboard' ;
24+ import { sharedLinks } from '../../../shared/links' ;
2525
2626type ErrorResponse = {
2727 error : string ;
@@ -33,7 +33,6 @@ export const OpenIDCallbackCard = () => {
3333 const { LL } = useI18nContext ( ) ;
3434 const [ error , setError ] = useState < string | null > ( null ) ;
3535 const { writeToClipboard } = useClipboard ( ) ;
36- const toaster = useToaster ( ) ;
3736
3837 const { isLoading, data } = useQuery (
3938 [ ] ,
@@ -149,9 +148,9 @@ export const OpenIDCallbackCard = () => {
149148 </ div >
150149 < div className = "row" >
151150 < a
152- onClick = { ( ) => {
153- toaster . success ( 'Unimplemented yet' ) ;
154- } }
151+ href = { sharedLinks . client . download . android }
152+ rel = "noopener noreferrer"
153+ target = "_blank"
155154 >
156155 < svg
157156 xmlns = "http://www.w3.org/2000/svg"
@@ -240,9 +239,9 @@ export const OpenIDCallbackCard = () => {
240239 </ svg >
241240 </ a >
242241 < a
243- onClick = { ( ) => {
244- toaster . success ( 'Unimplemented yet' ) ;
245- } }
242+ href = { sharedLinks . client . download . ios }
243+ rel = "noopener noreferrer"
244+ target = "_blank"
246245 >
247246 < svg
248247 xmlns = "http://www.w3.org/2000/svg"
@@ -350,12 +349,15 @@ export const OpenIDCallbackCard = () => {
350349 />
351350 </ svg >
352351 </ a >
353- < a href = "https://defguard.net/download" rel = "noopener noreferrer" target = "_blank" >
352+ < a
353+ href = { sharedLinks . client . download . desktop }
354+ rel = "noopener noreferrer"
355+ target = "_blank"
356+ >
354357 < Button
355358 size = { ButtonSize . SMALL }
356359 styleVariant = { ButtonStyleVariant . LINK }
357- text = "Download Desktop"
358- onClick = { ( ) => { } }
360+ text = "Download for Desktop"
359361 />
360362 </ a >
361363 </ div >
0 commit comments