diff --git a/app/components/BuyClassCard/index.tsx b/app/components/BuyClassCard/index.tsx
index 7d975e0..6685b6d 100644
--- a/app/components/BuyClassCard/index.tsx
+++ b/app/components/BuyClassCard/index.tsx
@@ -51,32 +51,35 @@ const BuyClassCard = ({ cards, xp, name, label, owned, formApi }: Props) => {
))}
{buyable.map((card) => {
- const disabled = !field.value().some((v: string) => +v === card.id) && card.cost > balance
+ const disabled =
+ !field.value().some((v: string) => +v === card.id) &&
+ card.cost > balance
return (
-
- )})}
+
+ )
+ })}
{error && {error}}
diff --git a/app/components/BuyItemCard/index.tsx b/app/components/BuyItemCard/index.tsx
index 81defb8..b016eae 100644
--- a/app/components/BuyItemCard/index.tsx
+++ b/app/components/BuyItemCard/index.tsx
@@ -70,7 +70,10 @@ const BuyItemCard = ({
const balance =
credits -
boughtItems.reduce((acc, cur) => acc + cur.cost, 0) +
- soldItems.reduce((acc, cur) => acc + (cur.cost ? getSellPrice(cur.cost) : 50), 0)
+ soldItems.reduce(
+ (acc, cur) => acc + (cur.cost ? getSellPrice(cur.cost) : 50),
+ 0
+ )
return (
diff --git a/app/components/EditButton/index.tsx b/app/components/EditButton/index.tsx
index 6f4ffdb..bb2c085 100644
--- a/app/components/EditButton/index.tsx
+++ b/app/components/EditButton/index.tsx
@@ -1,9 +1,9 @@
-import type { ElementRef, MouseEventHandler } from 'react'
+import type { ComponentRef, MouseEventHandler } from 'react'
import clsx from 'clsx'
import { PencilIcon, XMarkIcon } from '@heroicons/react/24/solid'
type EditButtonProps = {
- onClick: MouseEventHandler
>
+ onClick: MouseEventHandler>
active: boolean
hideLabel?: boolean
disabled?: boolean
diff --git a/app/components/Modal/index.tsx b/app/components/Modal/index.tsx
index dc60f81..ac01f17 100644
--- a/app/components/Modal/index.tsx
+++ b/app/components/Modal/index.tsx
@@ -1,22 +1,21 @@
import clsx from 'clsx'
-import {
- useRef,
- type ElementRef,
- type HTMLProps,
- type PropsWithChildren,
- type ReactEventHandler,
- useEffect
+import type {
+ PropsWithChildren,
+ HTMLProps,
+ ComponentRef,
+ ReactEventHandler
} from 'react'
+import { useRef, useEffect } from 'react'
type Props = PropsWithChildren<
{
open?: boolean
- onClose?: ReactEventHandler>
- } & HTMLProps>
+ onClose?: ReactEventHandler>
+ } & HTMLProps>
>
const Modal = ({ children, open, onClose, ...props }: Props) => {
- const ref = useRef>(null)
+ const ref = useRef>(null)
useEffect(() => {
if (open) {
diff --git a/app/components/PlaceholderInput/index.tsx b/app/components/PlaceholderInput/index.tsx
index 26b8cef..35fc217 100644
--- a/app/components/PlaceholderInput/index.tsx
+++ b/app/components/PlaceholderInput/index.tsx
@@ -1,7 +1,8 @@
import type { FormApi } from '@rvf/react-router'
import RequiredIndicator from '~/components/RequiredIndicator'
import clsx from 'clsx'
-import { useState, type ChangeEventHandler, type ElementRef } from 'react'
+import { useState } from 'react'
+import type { ChangeEventHandler, ComponentRef } from 'react'
import type { loader as resolveLoader } from '~/routes/_app.games.$game.resolve.$mission._index'
import type { useLoaderData } from 'react-router'
import type { JsonObject } from '@prisma/client/runtime/library'
@@ -13,7 +14,7 @@ type Placeholder = ReturnType<
type Props = {
index: number
placeholder: Placeholder
- onChange?: ChangeEventHandler>
+ onChange?: ChangeEventHandler>
formApi: FormApi
}
diff --git a/app/components/RebelRewardManager/index.tsx b/app/components/RebelRewardManager/index.tsx
index a5fa3b5..0c8ad9a 100644
--- a/app/components/RebelRewardManager/index.tsx
+++ b/app/components/RebelRewardManager/index.tsx
@@ -157,11 +157,9 @@ const RebelRewardManager = ({ rebel, allRewards, formAction }: Props) => {
- {form
- .value('rewards')
- ?.map((_, i) => (
-
- ))}
+ {form.value('rewards')?.map((_, i) => (
+
+ ))}
) : !rebel.rewards.length ? (
No Rewards
diff --git a/app/components/SelectInput/index.tsx b/app/components/SelectInput/index.tsx
index ddb5905..a5603ea 100644
--- a/app/components/SelectInput/index.tsx
+++ b/app/components/SelectInput/index.tsx
@@ -53,10 +53,7 @@ const SelectInput = forwardRef(
{labelRight}