From 3e435581d435c9accc0698ec70436371282a3159 Mon Sep 17 00:00:00 2001 From: Xevion Date: Sun, 10 Nov 2024 19:02:30 -0600 Subject: [PATCH] Remove outdated CHANGELOG entries, simplify imports, remove Next.js specifier --- CHANGELOG.md | 3 +-- frontend/src/components/auth/UserAuthForm.tsx | 8 +++----- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8d6df85..cd6f25f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -27,11 +27,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Set `black` formatter line length to 120 characters - backend: migration squashing threshold to 15 - backend: moved top level `app` routes to `router.misc` -- frontend: Updated `eslint` to `9.x.x`, `@types/node` to `22.9.x` ## Removed -- frontend: Removed `@nkzw/eslint-config` package +- frontend: Most old packages from initial `vite` template - backend: `IPAddress` Model (definition + DB state via migration) & all related code ## [0.2.2] - 2024-11-01 diff --git a/frontend/src/components/auth/UserAuthForm.tsx b/frontend/src/components/auth/UserAuthForm.tsx index 5942216..e2969bf 100644 --- a/frontend/src/components/auth/UserAuthForm.tsx +++ b/frontend/src/components/auth/UserAuthForm.tsx @@ -1,16 +1,14 @@ -"use client"; - import { Icons } from "@/components/icons"; import { Button } from "@/components/ui/button"; import { Input } from "@/components/ui/input"; import { Label } from "@/components/ui/label"; import { cn } from "@/lib/utils"; -import React from "react"; +import { HTMLAttributes, useState } from "react"; -interface UserAuthFormProps extends React.HTMLAttributes {} +interface UserAuthFormProps extends HTMLAttributes {} export function UserAuthForm({ className, ...props }: UserAuthFormProps) { - const [isLoading, setIsLoading] = React.useState(false); + const [isLoading, setIsLoading] = useState(false); async function onSubmit(event: React.SyntheticEvent) { event.preventDefault();