Fix linting

This commit is contained in:
Luke Vella 2025-04-18 17:25:07 +01:00
parent d27e6d6853
commit 56553bdf03
No known key found for this signature in database
GPG key ID: 469CAD687F0D784C
4 changed files with 8 additions and 7 deletions

View file

@ -1,11 +1,12 @@
import type { Params } from "@/app/[locale]/types";
import { getTranslation } from "@/i18n/server";
import { getUser } from "@/data/get-user";
import { Button } from "@rallly/ui/button"; import { Button } from "@rallly/ui/button";
import { DialogTrigger } from "@rallly/ui/dialog"; import { DialogTrigger } from "@rallly/ui/dialog";
import { TrashIcon } from "lucide-react"; import { TrashIcon } from "lucide-react";
import type { Params } from "@/app/[locale]/types";
import { Trans } from "@/components/trans"; import { Trans } from "@/components/trans";
import { getUser } from "@/data/get-user";
import { getTranslation } from "@/i18n/server";
import { import {
SettingsContent, SettingsContent,
SettingsSection, SettingsSection,

View file

@ -78,7 +78,7 @@ function ChangeAvatarButton({ onSuccess }: { onSuccess: () => void }) {
}); });
onSuccess(); onSuccess();
} catch (error) { } catch {
toast({ toast({
title: t("errorUploadPicture", { title: t("errorUploadPicture", {
defaultValue: "Failed to upload", defaultValue: "Failed to upload",

View file

@ -10,6 +10,7 @@ import {
FormMessage, FormMessage,
} from "@rallly/ui/form"; } from "@rallly/ui/form";
import { Input } from "@rallly/ui/input"; import { Input } from "@rallly/ui/input";
import { useRouter } from "next/navigation";
import { useForm } from "react-hook-form"; import { useForm } from "react-hook-form";
import { z } from "zod"; import { z } from "zod";
@ -17,7 +18,6 @@ import { Trans } from "@/components/trans";
import { trpc } from "@/trpc/client"; import { trpc } from "@/trpc/client";
import { ProfilePicture } from "./profile-picture"; import { ProfilePicture } from "./profile-picture";
import { useRouter } from "next/navigation";
const profileSettingsFormData = z.object({ const profileSettingsFormData = z.object({
name: z.string().min(1).max(100), name: z.string().min(1).max(100),

View file

@ -1,5 +1,6 @@
"use client"; "use client";
import { usePostHog } from "@rallly/posthog/client"; import { usePostHog } from "@rallly/posthog/client";
import { useRouter } from "next/navigation";
import type { Session } from "next-auth"; import type { Session } from "next-auth";
import { signOut, useSession } from "next-auth/react"; import { signOut, useSession } from "next-auth/react";
import React from "react"; import React from "react";
@ -11,7 +12,6 @@ import { trpc } from "@/trpc/client";
import { isOwner } from "@/utils/permissions"; import { isOwner } from "@/utils/permissions";
import { useRequiredContext } from "./use-required-context"; import { useRequiredContext } from "./use-required-context";
import { useRouter } from "next/navigation";
type UserData = { type UserData = {
id?: string; id?: string;