mirror of
https://github.com/lukevella/rallly.git
synced 2025-07-04 18:17:25 +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 { OptimizedAvatarImage } from "@/components/optimized-avatar-image";
|
||||||
import { Trans } from "@/components/trans";
|
import { Trans } from "@/components/trans";
|
||||||
import { useUser } from "@/components/user-provider";
|
import { useUser } from "@/components/user-provider";
|
||||||
import { useAvatarsEnabled } from "@/features/avatars";
|
|
||||||
import { usePostHog } from "@/utils/posthog";
|
import { usePostHog } from "@/utils/posthog";
|
||||||
import { trpc } from "@/utils/trpc/client";
|
import { trpc } from "@/utils/trpc/client";
|
||||||
|
|
||||||
|
@ -152,14 +151,9 @@ function RemoveAvatarButton({ onSuccess }: { onSuccess?: () => void }) {
|
||||||
|
|
||||||
function Upload() {
|
function Upload() {
|
||||||
const { user, refresh } = useUser();
|
const { user, refresh } = useUser();
|
||||||
const isAvatarsEnabled = useAvatarsEnabled();
|
|
||||||
|
|
||||||
const posthog = usePostHog();
|
const posthog = usePostHog();
|
||||||
|
|
||||||
if (!isAvatarsEnabled) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="flex flex-col gap-y-2">
|
<div className="flex flex-col gap-y-2">
|
||||||
<div className="flex gap-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
Add a link
Reference in a new issue