Skip to content

Commit 07557d4

Browse files
committed
cleanup
1 parent d7ec52f commit 07557d4

File tree

1 file changed

+12
-16
lines changed
  • apps/dashboard/app/(main)/settings/integrations

1 file changed

+12
-16
lines changed

apps/dashboard/app/(main)/settings/integrations/page.tsx

Lines changed: 12 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,12 @@ import {
77
WarningIcon,
88
} from '@phosphor-icons/react';
99
import Image from 'next/image';
10+
import Link from 'next/link';
1011
import { useSearchParams } from 'next/navigation';
1112
import { useEffect, useState } from 'react';
1213
import { Badge } from '@/components/ui/badge';
1314
import { 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';
2116
import { Skeleton } from '@/components/ui/skeleton';
2217
import {
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}

0 commit comments

Comments
 (0)