mirror of
https://github.com/lukevella/rallly.git
synced 2025-04-29 02:06:34 +02:00
Fix linting
This commit is contained in:
parent
d27e6d6853
commit
56553bdf03
4 changed files with 8 additions and 7 deletions
|
@ -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 { DialogTrigger } from "@rallly/ui/dialog";
|
||||
import { TrashIcon } from "lucide-react";
|
||||
|
||||
import type { Params } from "@/app/[locale]/types";
|
||||
import { Trans } from "@/components/trans";
|
||||
import { getUser } from "@/data/get-user";
|
||||
import { getTranslation } from "@/i18n/server";
|
||||
|
||||
import {
|
||||
SettingsContent,
|
||||
SettingsSection,
|
||||
|
|
|
@ -78,7 +78,7 @@ function ChangeAvatarButton({ onSuccess }: { onSuccess: () => void }) {
|
|||
});
|
||||
|
||||
onSuccess();
|
||||
} catch (error) {
|
||||
} catch {
|
||||
toast({
|
||||
title: t("errorUploadPicture", {
|
||||
defaultValue: "Failed to upload",
|
||||
|
|
|
@ -10,6 +10,7 @@ import {
|
|||
FormMessage,
|
||||
} from "@rallly/ui/form";
|
||||
import { Input } from "@rallly/ui/input";
|
||||
import { useRouter } from "next/navigation";
|
||||
import { useForm } from "react-hook-form";
|
||||
import { z } from "zod";
|
||||
|
||||
|
@ -17,7 +18,6 @@ import { Trans } from "@/components/trans";
|
|||
import { trpc } from "@/trpc/client";
|
||||
|
||||
import { ProfilePicture } from "./profile-picture";
|
||||
import { useRouter } from "next/navigation";
|
||||
|
||||
const profileSettingsFormData = z.object({
|
||||
name: z.string().min(1).max(100),
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
"use client";
|
||||
import { usePostHog } from "@rallly/posthog/client";
|
||||
import { useRouter } from "next/navigation";
|
||||
import type { Session } from "next-auth";
|
||||
import { signOut, useSession } from "next-auth/react";
|
||||
import React from "react";
|
||||
|
@ -11,7 +12,6 @@ import { trpc } from "@/trpc/client";
|
|||
import { isOwner } from "@/utils/permissions";
|
||||
|
||||
import { useRequiredContext } from "./use-required-context";
|
||||
import { useRouter } from "next/navigation";
|
||||
|
||||
type UserData = {
|
||||
id?: string;
|
||||
|
|
Loading…
Add table
Reference in a new issue