🚩 Remove feature flag

This commit is contained in:
Luke Vella 2024-10-05 21:14:53 +01:00
parent eb3238667a
commit b2ad535d19
No known key found for this signature in database
GPG key ID: 469CAD687F0D784C
2 changed files with 0 additions and 11 deletions

View file

@ -8,7 +8,6 @@ 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 { useAvatarsEnabled } from "@/features/avatars";
import { usePostHog } from "@/utils/posthog";
import { trpc } from "@/utils/trpc/client";
@ -152,14 +151,9 @@ function RemoveAvatarButton({ onSuccess }: { onSuccess?: () => void }) {
function Upload() {
const { user, refresh } = useUser();
const isAvatarsEnabled = useAvatarsEnabled();
const posthog = usePostHog();
if (!isAvatarsEnabled) {
return null;
}
return (
<div className="flex flex-col gap-y-2">
<div className="flex gap-2">

View file

@ -1,5 +0,0 @@
import { useFeatureFlagEnabled } from "posthog-js/react";
export function useAvatarsEnabled() {
return useFeatureFlagEnabled("avatars");
}