File tree 6 files changed +4
-9
lines changed
(ui)/(protected)/api-keys
6 files changed +4
-9
lines changed Original file line number Diff line number Diff line change @@ -10,8 +10,6 @@ import { useGetKeys } from "@/hooks/keys/keys.hooks";
10
10
export default function APIKeys ( ) {
11
11
const { data, isLoading } = useGetKeys ( ) ;
12
12
13
- console . log ( data )
14
-
15
13
return (
16
14
< div className = "mt-4 px-4 mb-24 flex flex-col h-full" >
17
15
< PageHeader
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ export async function GET() {
25
25
data : domainsWithCheckResults ,
26
26
total : domainsWithCheckResults . length ,
27
27
} ) ;
28
- } catch ( err ) {
28
+ } catch {
29
29
return NextResponse . json (
30
30
{ error : "Failed to retrieve registered domains" } ,
31
31
{ status : 500 }
Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ export async function GET() {
49
49
data : keys ,
50
50
total : keys . length ,
51
51
} ) ;
52
- } catch ( err ) {
52
+ } catch {
53
53
return NextResponse . json (
54
54
{ error : "Failed to fetch keys!" } ,
55
55
{ status : 500 }
Original file line number Diff line number Diff line change 1
- import { useDeleteDomain } from '@/hooks/domains/domain.hooks' ;
2
1
import { IconAlertTriangle } from '@tabler/icons-react' ;
3
2
import { FC } from 'react'
4
3
import { ConfirmDialog } from '../confirm-dialog' ;
@@ -16,9 +15,9 @@ const KeyDeleteConfirm: FC<Props> = ({
16
15
onCancel,
17
16
selectedKey,
18
17
} ) => {
18
+ const deleteKeyMutation = useDeleteKey ( )
19
19
if ( ! selectedKey ) return null ;
20
20
21
- const deleteKeyMutation = useDeleteKey ( )
22
21
const handleConfirmDelete = async ( ) => {
23
22
await deleteKeyMutation . mutateAsync ( {
24
23
key : selectedKey . key
Original file line number Diff line number Diff line change 1
- import { DeleteDomainValues } from '@/app/api/domain/domain-schema' ;
2
1
import { useDeleteDomain } from '@/hooks/domains/domain.hooks' ;
3
2
import { IconAlertTriangle } from '@tabler/icons-react' ;
4
3
import { FC } from 'react'
@@ -16,9 +15,9 @@ const ProxyDeleteConfirm: FC<Props> = ({
16
15
onCancel,
17
16
proxy,
18
17
} ) => {
18
+ const deleteDomainMutation = useDeleteDomain ( )
19
19
if ( ! proxy ) return null ;
20
20
21
- const deleteDomainMutation = useDeleteDomain ( )
22
21
const handleConfirmDelete = async ( ) => {
23
22
await deleteDomainMutation . mutateAsync ( {
24
23
incomingAddress : proxy . incomingAddress
Original file line number Diff line number Diff line change 9
9
} from '@/components/ui/dialog'
10
10
import { useGetRawConfig } from '@/hooks/domains/domain.hooks'
11
11
import { BoxLoader } from '../loader'
12
- import { useState } from 'react'
13
12
import { Button } from '@/components/ui/button'
14
13
import { Clipboard } from 'lucide-react'
15
14
import { toast } from 'sonner'
You can’t perform that action at this time.
0 commit comments