mirror of
https://github.com/p-stream/p-stream.git
synced 2026-04-21 12:12:17 +00:00
fix alert button for logged in state
This commit is contained in:
parent
0019b982e0
commit
538203305e
1 changed files with 8 additions and 1 deletions
|
|
@ -6,6 +6,7 @@ import { Icons } from "@/components/Icon";
|
||||||
import { IconPill } from "@/components/layout/IconPill";
|
import { IconPill } from "@/components/layout/IconPill";
|
||||||
import { Loading } from "@/components/layout/Loading";
|
import { Loading } from "@/components/layout/Loading";
|
||||||
import { WideContainer } from "@/components/layout/WideContainer";
|
import { WideContainer } from "@/components/layout/WideContainer";
|
||||||
|
import { useAuth } from "@/hooks/auth/useAuth";
|
||||||
import { useDebounce } from "@/hooks/useDebounce";
|
import { useDebounce } from "@/hooks/useDebounce";
|
||||||
import { useRandomTranslation } from "@/hooks/useRandomTranslation";
|
import { useRandomTranslation } from "@/hooks/useRandomTranslation";
|
||||||
import { useSearchQuery } from "@/hooks/useSearchQuery";
|
import { useSearchQuery } from "@/hooks/useSearchQuery";
|
||||||
|
|
@ -101,11 +102,17 @@ export function HomePage() {
|
||||||
localStorage.setItem("popupDismissed", "true");
|
localStorage.setItem("popupDismissed", "true");
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const { loggedIn } = useAuth();
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<HomeLayout showBg={showBg}>
|
<HomeLayout showBg={showBg}>
|
||||||
<a
|
<a
|
||||||
onClick={() => setShowModal(true)}
|
onClick={() => setShowModal(true)}
|
||||||
className="text-l lg:text-lg text-white tabbable rounded-full z-50 fixed top-5 right-[7.5rem]"
|
className={` text-white tabbable rounded-full z-50 fixed top-5 ${
|
||||||
|
loggedIn
|
||||||
|
? "right-[7.5rem] lg:right-[12.5rem] lg:text-2xl"
|
||||||
|
: "right-[7.5rem] text-xl lg:text-lg"
|
||||||
|
}`}
|
||||||
style={{ animation: "pulse 1s infinite" }}
|
style={{ animation: "pulse 1s infinite" }}
|
||||||
>
|
>
|
||||||
<IconPill icon={Icons.WARNING}>
|
<IconPill icon={Icons.WARNING}>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue