Skip to content

Commit e3ba7c2

Browse files
[WEB-5781]chore: removed info banner for preferences #8442
1 parent 78eeb9c commit e3ba7c2

File tree

1 file changed

+6
-17
lines changed
  • apps/web/core/components/profile

1 file changed

+6
-17
lines changed

apps/web/core/components/profile/form.tsx

Lines changed: 6 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,18 @@
1-
import React, { useState } from "react";
1+
import { useState } from "react";
22
import { observer } from "mobx-react";
3-
import Link from "next/link";
4-
import { useParams } from "next/navigation";
53
import { Controller, useForm } from "react-hook-form";
6-
import { CircleUserRound, InfoIcon } from "lucide-react";
4+
import { CircleUserRound } from "lucide-react";
75
import { Disclosure, Transition } from "@headlessui/react";
86
// plane imports
97
import { PROFILE_SETTINGS_TRACKER_ELEMENTS, PROFILE_SETTINGS_TRACKER_EVENTS } from "@plane/constants";
108
import { useTranslation } from "@plane/i18n";
11-
import { Button, getButtonStyling } from "@plane/propel/button";
9+
import { Button } from "@plane/propel/button";
1210
import { ChevronDownIcon } from "@plane/propel/icons";
1311
import { TOAST_TYPE, setPromiseToast, setToast } from "@plane/propel/toast";
1412
import { EFileAssetType } from "@plane/types";
1513
import type { IUser, TUserProfile } from "@plane/types";
1614
import { Input } from "@plane/ui";
17-
import { cn, getFileURL } from "@plane/utils";
15+
import { getFileURL } from "@plane/utils";
1816
// components
1917
import { DeactivateAccountModal } from "@/components/account/deactivate-account-modal";
2018
import { ImagePickerPopover } from "@/components/core/image-picker-popover";
@@ -49,7 +47,6 @@ export type TProfileFormProps = {
4947

5048
export const ProfileForm = observer(function ProfileForm(props: TProfileFormProps) {
5149
const { user, profile } = props;
52-
const { workspaceSlug } = useParams();
5350
// states
5451
const [isLoading, setIsLoading] = useState(false);
5552
const [isImageUploadModalOpen, setIsImageUploadModalOpen] = useState(false);
@@ -100,6 +97,7 @@ export const ProfileForm = observer(function ProfileForm(props: TProfileFormProp
10097
message: "Profile picture deleted successfully.",
10198
});
10299
setValue("avatar_url", "");
100+
return;
103101
})
104102
.catch(() => {
105103
setToast({
@@ -169,6 +167,7 @@ export const ProfileForm = observer(function ProfileForm(props: TProfileFormProp
169167
captureSuccess({
170168
eventName: PROFILE_SETTINGS_TRACKER_EVENTS.update_profile,
171169
});
170+
return;
172171
})
173172
.catch(() => {
174173
captureError({
@@ -198,16 +197,6 @@ export const ProfileForm = observer(function ProfileForm(props: TProfileFormProp
198197
/>
199198
)}
200199
/>
201-
<div className="w-full flex text-accent-secondary bg-accent-primary/10 rounded-md p-2 gap-2 items-center mb-4">
202-
<InfoIcon className="h-4 w-4 flex-shrink-0" />
203-
<div className="text-13 font-medium flex-1">{t("settings_moved_to_preferences")}</div>
204-
<Link
205-
href={`/${workspaceSlug}/settings/account/preferences`}
206-
className={cn(getButtonStyling("secondary", "base"))}
207-
>
208-
{t("go_to_preferences")}
209-
</Link>
210-
</div>
211200
<form onSubmit={handleSubmit(onSubmit)} className="w-full">
212201
<div className="flex w-full flex-col gap-6">
213202
<div className="relative h-44 w-full">

0 commit comments

Comments
 (0)