File tree Expand file tree Collapse file tree 1 file changed +12
-16
lines changed
apps/dashboard/app/(main)/settings/integrations Expand file tree Collapse file tree 1 file changed +12
-16
lines changed Original file line number Diff line number Diff line change @@ -7,17 +7,12 @@ import {
77 WarningIcon ,
88} from '@phosphor-icons/react' ;
99import Image from 'next/image' ;
10+ import Link from 'next/link' ;
1011import { useSearchParams } from 'next/navigation' ;
1112import { useEffect , useState } from 'react' ;
1213import { Badge } from '@/components/ui/badge' ;
1314import { Button } from '@/components/ui/button' ;
14- import {
15- Card ,
16- CardContent ,
17- CardDescription ,
18- CardHeader ,
19- CardTitle ,
20- } from '@/components/ui/card' ;
15+ import { Card , CardContent } from '@/components/ui/card' ;
2116import { Skeleton } from '@/components/ui/skeleton' ;
2217import {
2318 type Integration ,
@@ -232,16 +227,17 @@ export default function IntegrationsPage() {
232227 < div className = "pt-2" >
233228 { integration . connected ? (
234229 < div className = "flex gap-2" >
235- < Button
236- className = "flex-1"
237- onClick = { ( ) =>
238- ( window . location . href = `/settings/integrations/${ integration . id } ` )
239- }
240- size = "sm"
241- variant = "outline"
230+ < Link
231+ href = { `/settings/integrations/${ integration . id } ` }
242232 >
243- Configure
244- </ Button >
233+ < Button
234+ className = "flex-1"
235+ size = "sm"
236+ variant = "outline"
237+ >
238+ Configure
239+ </ Button >
240+ </ Link >
245241 < Button
246242 className = "text-destructive hover:bg-destructive/10 hover:text-destructive"
247243 disabled = { disconnectMutation . isPending }
You can’t perform that action at this time.
0 commit comments