Skip to content

Commit

Permalink
refactor: Remove Unleash feature flag from Footer component
Browse files Browse the repository at this point in the history
  • Loading branch information
bigint committed Mar 1, 2025
1 parent 3436a0f commit 7db3587
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions apps/web/src/components/Shared/Footer.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
import { APP_NAME } from "@hey/data/constants";
import { FeatureFlag } from "@hey/data/feature-flags";
import { Modal } from "@hey/ui";
import cn from "@hey/ui/cn";
import { useFlag } from "@unleash/proxy-client-react";
import Link from "next/link";
import type { FC } from "react";
import { useState } from "react";
Expand Down Expand Up @@ -33,16 +30,10 @@ const links = [
];

const Footer: FC = () => {
const isStaff = useFlag(FeatureFlag.Staff);
const [showTipModal, setShowTipModal] = useState(false);

return (
<footer
className={cn(
isStaff ? "top-28" : "top-20",
"sticky mt-4 flex flex-wrap gap-x-[12px] gap-y-2 px-3 text-sm lg:px-0"
)}
>
<footer className="sticky top-20 mt-4 flex flex-wrap gap-x-[12px] gap-y-2 px-3 text-sm lg:px-0">
<span className="ld-text-gray-500 font-bold">
&copy; {currentYear} {APP_NAME}.xyz
</span>
Expand Down

0 comments on commit 7db3587

Please sign in to comment.