From 6745ee85297d946f7988e37546f039f274a0694e Mon Sep 17 00:00:00 2001 From: Aarnav Tale Date: Mon, 6 Jan 2025 08:18:46 +0530 Subject: [PATCH] fix: resolve type errors and lint components/routes --- app/components/Code.tsx | 8 ++++++-- app/components/Footer.tsx | 6 +++++- app/components/Toaster.tsx | 17 +++++++++++------ app/routes/acls/editor.tsx | 6 +++--- app/routes/auth/login.tsx | 6 +++++- app/routes/dns/components/nameservers.tsx | 2 +- app/routes/dns/overview.tsx | 10 +++++----- app/routes/machines/components/machine.tsx | 8 ++++++-- app/routes/machines/dialogs/routes.tsx | 7 +++++-- app/routes/machines/machine.tsx | 7 +++++-- app/routes/users/overview.tsx | 7 ++++++- app/routes/util/healthz.ts | 2 +- biome.json | 5 ++++- 13 files changed, 63 insertions(+), 28 deletions(-) diff --git a/app/components/Code.tsx b/app/components/Code.tsx index 1606610..4fbb2b4 100644 --- a/app/components/Code.tsx +++ b/app/components/Code.tsx @@ -1,4 +1,4 @@ -import { useState, type HTMLProps } from 'react'; +import { useState, HTMLProps } from 'react'; import { CopyIcon, CheckIcon } from '@primer/octicons-react'; import { cn } from '~/utils/cn'; import { toast } from '~/components/Toaster'; @@ -20,7 +20,7 @@ export default function Code(props: Props) { > {props.children} - {props.isCopyable && props.children ? ( + {props.isCopyable ? (