diff --git a/src/components/common/PanoramaBackground.tsx b/src/components/common/PanoramaBackground.tsx index a55828b..5dbebf6 100644 --- a/src/components/common/PanoramaBackground.tsx +++ b/src/components/common/PanoramaBackground.tsx @@ -1,5 +1,5 @@ import React, { useEffect, useRef, useState } from "react"; -import { useUI } from "../../context/LauncherContext"; + interface PanoramaProps { profile: string; @@ -7,7 +7,6 @@ interface PanoramaProps { } const PanoramaBackground = React.memo(({ profile, isDay }: PanoramaProps) => { - const { isWindowVisible } = useUI(); const baseId = profile; const profileId = baseId ? baseId : "vanilla_tu19"; const isCustomUrl = profile.startsWith("data:") || profile.startsWith("blob:"); @@ -54,18 +53,16 @@ const PanoramaBackground = React.memo(({ profile, isDay }: PanoramaProps) => { ref={containerRef} className="absolute inset-0 overflow-hidden pointer-events-none transition-opacity duration-500" > - {isWindowVisible && ( -
- )} + >