mirror of
https://github.com/lukevella/rallly.git
synced 2025-04-29 18:26:34 +02:00
🚩 Remove feature flag
This commit is contained in:
parent
eb3238667a
commit
b2ad535d19
2 changed files with 0 additions and 11 deletions
|
@ -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">
|
||||
|
|
|
@ -1,5 +0,0 @@
|
|||
import { useFeatureFlagEnabled } from "posthog-js/react";
|
||||
|
||||
export function useAvatarsEnabled() {
|
||||
return useFeatureFlagEnabled("avatars");
|
||||
}
|
Loading…
Add table
Reference in a new issue