diff options
| author | Max Nanis | 2026-09-13 11:43:52 -0700 |
|---|---|---|
| committer | Max Nanis | 2026-09-13 11:43:52 -0700 |
| commit | b464e311b44a5f3baeb1568ba55b6322a1a11638 (patch) | |
| tree | f478c15fdd1f886ed96135867aa6b32f2b599bee /jb-ui/src/pages/Preview.tsx | |
| parent | 83821dff9984fb950e53f23baf99d7a74fb88abd (diff) | |
| download | amt-jb-b464e311b44a5f3baeb1568ba55b6322a1a11638.tar.gz amt-jb-b464e311b44a5f3baeb1568ba55b6322a1a11638.zip | |
Fix pnpm build error requirements
Diffstat (limited to 'jb-ui/src/pages/Preview.tsx')
| -rw-r--r-- | jb-ui/src/pages/Preview.tsx | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/jb-ui/src/pages/Preview.tsx b/jb-ui/src/pages/Preview.tsx index 900621e..c58a85e 100644 --- a/jb-ui/src/pages/Preview.tsx +++ b/jb-ui/src/pages/Preview.tsx @@ -5,13 +5,12 @@ import { LeaderboardFrequency, LeaderboardRow, } from "@/api_fsb"; -import { Button } from "@/components/ui/button"; import { useAppSelector } from "@/hooks"; import { bpid, formatCentsToUSD, truncate } from "@/lib/utils"; import { activeSurveys, activeUsers, maxPayout } from "@/models/grlStatsSlice"; import { clsx } from "clsx"; import moment from "moment"; -import { useEffect, useState } from "react"; +import { FormEvent, useEffect, useState } from "react"; const showSmartRank = ( item: LeaderboardRow, @@ -247,7 +246,11 @@ export const Leaderboards = () => { type RequestState = "idle" | "working" | "failed"; -const LoginForm = function ({ onSubmitSuccess }) { +interface LoginFormProps { + onSubmitSuccess: () => void; +} + +const LoginForm = function ({ onSubmitSuccess }: LoginFormProps) { const [email, setEmail] = useState(""); const [state, setState] = useState<RequestState>("idle"); |
