mirror of
https://github.com/lukevella/rallly.git
synced 2025-04-29 18:26: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 { 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,
|
||||||
|
|
|
@ -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",
|
||||||
|
|
|
@ -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),
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Add table
Reference in a new issue