first
This commit is contained in:
commit
8538ab969a
434 changed files with 44051 additions and 0 deletions
29
apps/web/modules/saas/settings/components/UserAvatarForm.tsx
Normal file
29
apps/web/modules/saas/settings/components/UserAvatarForm.tsx
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
"use client";
|
||||
import { SettingsItem } from "@saas/shared/components/SettingsItem";
|
||||
import { useTranslations } from "next-intl";
|
||||
import { toast } from "sonner";
|
||||
import { UserAvatarUpload } from "./UserAvatarUpload";
|
||||
|
||||
export function UserAvatarForm() {
|
||||
const t = useTranslations();
|
||||
|
||||
return (
|
||||
<SettingsItem
|
||||
title={t("settings.account.avatar.title")}
|
||||
description={t("settings.account.avatar.description")}
|
||||
>
|
||||
<UserAvatarUpload
|
||||
onSuccess={() => {
|
||||
toast.success(
|
||||
t("settings.account.avatar.notifications.success"),
|
||||
);
|
||||
}}
|
||||
onError={() => {
|
||||
toast.error(
|
||||
t("settings.account.avatar.notifications.error"),
|
||||
);
|
||||
}}
|
||||
/>
|
||||
</SettingsItem>
|
||||
);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue