aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorschererleander <leander@schererleander.de>2025-12-26 14:57:45 +0100
committerschererleander <leander@schererleander.de>2025-12-26 14:57:45 +0100
commit360e487fbd658b2bab25aa1cd8c7a53d600e3074 (patch)
tree30c3e1a00046a46806508c4be045c9b72bbaab19
parent669f7679da4c126838f7b516c0cc415be1ea524a (diff)
style(ui): minor formatting updates to pages
-rw-r--r--src/app/login/page.tsx4
-rw-r--r--src/app/settings/page.tsx12
-rw-r--r--src/app/signup/page.tsx2
3 files changed, 9 insertions, 9 deletions
diff --git a/src/app/login/page.tsx b/src/app/login/page.tsx
index 7d4ad9d..9be16e7 100644
--- a/src/app/login/page.tsx
+++ b/src/app/login/page.tsx
@@ -47,7 +47,7 @@ export default function SignInPage() {
router.push("/")
router.refresh()
}
- } catch (error) {
+ } catch {
setError("An unexpected error occurred")
} finally {
setIsLoading(false)
@@ -131,7 +131,7 @@ export default function SignInPage() {
</Form>
<div className="text-center text-sm">
- <span className="text-muted-foreground">Don't have an account? </span>
+ <span className="text-muted-foreground">Don&apos;t have an account? </span>
<Link href="/signup" className="text-primary hover:underline font-medium">
Sign up
</Link>
diff --git a/src/app/settings/page.tsx b/src/app/settings/page.tsx
index ce2d849..26e55d0 100644
--- a/src/app/settings/page.tsx
+++ b/src/app/settings/page.tsx
@@ -6,7 +6,7 @@ import { useRouter } from "next/navigation"
import { zodResolver } from "@hookform/resolvers/zod"
import { useForm } from "react-hook-form"
import { z } from "zod"
-import { Eye, EyeOff, Loader2, User, Mail, Lock, Save, Camera, Upload, Trash2 } from "lucide-react"
+import { Eye, EyeOff, Loader2, User, Lock, Save, Camera, Upload, Trash2 } from "lucide-react"
import { toast } from "sonner"
import { Button } from "@/components/ui/button"
@@ -16,7 +16,7 @@ import { Input } from "@/components/ui/input"
import { Separator } from "@/components/ui/separator"
import { Avatar, AvatarImage, AvatarFallback } from "@/components/ui/avatar"
import Navbar from "@/components/Navbar"
-import { updateProfileSchema, updatePasswordSchema, type UpdateProfileInput, type UpdatePasswordInput } from "@/lib/validation"
+import { updateProfileSchema, updatePasswordSchema, type UpdateProfileInput } from "@/lib/validation"
// Form schema for password change with confirmation
const passwordChangeSchema = updatePasswordSchema.extend({
@@ -100,7 +100,7 @@ export default function SettingsPage() {
toast.success("Profile updated successfully!")
- } catch (error) {
+ } catch {
toast.error("An unexpected error occurred")
} finally {
setIsLoading(false)
@@ -130,7 +130,7 @@ export default function SettingsPage() {
toast.success("Password updated successfully!")
passwordForm.reset()
- } catch (error) {
+ } catch {
toast.error("An unexpected error occurred")
} finally {
setIsLoading(false)
@@ -167,7 +167,7 @@ export default function SettingsPage() {
image: result.profileImage.url
})
- } catch (error) {
+ } catch {
toast.error('An unexpected error occurred')
} finally {
setIsImageLoading(false)
@@ -201,7 +201,7 @@ export default function SettingsPage() {
image: null
})
- } catch (error) {
+ } catch {
toast.error('An unexpected error occurred')
} finally {
setIsImageLoading(false)
diff --git a/src/app/signup/page.tsx b/src/app/signup/page.tsx
index ab5b4d4..095b080 100644
--- a/src/app/signup/page.tsx
+++ b/src/app/signup/page.tsx
@@ -58,7 +58,7 @@ export default function SignUpPage() {
router.push("/login")
}, 2000)
- } catch (error) {
+ } catch {
setError("An unexpected error occurred")
} finally {
setIsLoading(false)