Skip to content

Commit f5dc5b2

Browse files
committed
chore: lint
1 parent e4a2a26 commit f5dc5b2

File tree

6 files changed

+4
-9
lines changed

6 files changed

+4
-9
lines changed

src/app/(ui)/(protected)/api-keys/page.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ import { useGetKeys } from "@/hooks/keys/keys.hooks";
1010
export default function APIKeys() {
1111
const { data, isLoading } = useGetKeys();
1212

13-
console.log(data)
14-
1513
return (
1614
<div className="mt-4 px-4 mb-24 flex flex-col h-full">
1715
<PageHeader

src/app/api/domain/registered/route.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export async function GET() {
2525
data: domainsWithCheckResults,
2626
total: domainsWithCheckResults.length,
2727
});
28-
} catch (err) {
28+
} catch {
2929
return NextResponse.json(
3030
{ error: "Failed to retrieve registered domains" },
3131
{ status: 500 }

src/app/api/keys/route.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export async function GET() {
4949
data: keys,
5050
total: keys.length,
5151
});
52-
} catch (err) {
52+
} catch {
5353
return NextResponse.json(
5454
{ error: "Failed to fetch keys!" },
5555
{ status: 500 }

src/components/keys/key-delete-confirm.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { useDeleteDomain } from '@/hooks/domains/domain.hooks';
21
import { IconAlertTriangle } from '@tabler/icons-react';
32
import { FC } from 'react'
43
import { ConfirmDialog } from '../confirm-dialog';
@@ -16,9 +15,9 @@ const KeyDeleteConfirm: FC<Props> = ({
1615
onCancel,
1716
selectedKey,
1817
}) => {
18+
const deleteKeyMutation = useDeleteKey()
1919
if (!selectedKey) return null;
2020

21-
const deleteKeyMutation = useDeleteKey()
2221
const handleConfirmDelete = async () => {
2322
await deleteKeyMutation.mutateAsync({
2423
key: selectedKey.key

src/components/proxies/proxy-delete-confirm.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { DeleteDomainValues } from '@/app/api/domain/domain-schema';
21
import { useDeleteDomain } from '@/hooks/domains/domain.hooks';
32
import { IconAlertTriangle } from '@tabler/icons-react';
43
import { FC } from 'react'
@@ -16,9 +15,9 @@ const ProxyDeleteConfirm: FC<Props> = ({
1615
onCancel,
1716
proxy,
1817
}) => {
18+
const deleteDomainMutation = useDeleteDomain()
1919
if(!proxy) return null;
2020

21-
const deleteDomainMutation = useDeleteDomain()
2221
const handleConfirmDelete = async () => {
2322
await deleteDomainMutation.mutateAsync({
2423
incomingAddress: proxy.incomingAddress

src/components/proxies/view-raw-dialog.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import {
99
} from '@/components/ui/dialog'
1010
import { useGetRawConfig } from '@/hooks/domains/domain.hooks'
1111
import { BoxLoader } from '../loader'
12-
import { useState } from 'react'
1312
import { Button } from '@/components/ui/button'
1413
import { Clipboard } from 'lucide-react'
1514
import { toast } from 'sonner'

0 commit comments

Comments
 (0)