mirror of
https://github.com/lukevella/rallly.git
synced 2025-04-29 10:16:32 +02:00
🚧 Limit avatar uploads to cloud hosted
This commit is contained in:
parent
874c4d1453
commit
18dbb750f2
1 changed files with 4 additions and 1 deletions
|
@ -8,6 +8,7 @@ import { useTranslation } from "@/app/i18n/client";
|
|||
import { OptimizedAvatarImage } from "@/components/optimized-avatar-image";
|
||||
import { Trans } from "@/components/trans";
|
||||
import { useUser } from "@/components/user-provider";
|
||||
import { IfCloudHosted } from "@/contexts/environment";
|
||||
import { usePostHog } from "@/utils/posthog";
|
||||
import { trpc } from "@/utils/trpc/client";
|
||||
|
||||
|
@ -191,7 +192,9 @@ export function ProfilePicture() {
|
|||
name={user.name}
|
||||
size="lg"
|
||||
/>
|
||||
<Upload />
|
||||
<IfCloudHosted>
|
||||
<Upload />
|
||||
</IfCloudHosted>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue