mirror of
https://github.com/logos-messaging/OpChan.git
synced 2026-01-06 23:03:07 +00:00
refactor: remove dismiss functionality and related state management from RemixBanner
This commit is contained in:
parent
1165cc23c6
commit
34b9c2ae29
@ -1,12 +1,7 @@
|
|||||||
|
|
||||||
import { X, Code } from 'lucide-react';
|
import { Code } from 'lucide-react';
|
||||||
import { useUIState } from '@/hooks';
|
|
||||||
|
|
||||||
const RemixBanner = () => {
|
const RemixBanner = () => {
|
||||||
const [isDismissed, setIsDismissed] = useUIState('remixBannerDismissed', false);
|
|
||||||
|
|
||||||
if (isDismissed) return null;
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="bg-gradient-to-r from-primary/10 to-primary/5 border-b border-primary/30">
|
<div className="bg-gradient-to-r from-primary/10 to-primary/5 border-b border-primary/30">
|
||||||
<div className="max-w-6xl mx-auto px-2 py-2">
|
<div className="max-w-6xl mx-auto px-2 py-2">
|
||||||
@ -36,15 +31,6 @@ const RemixBanner = () => {
|
|||||||
</span>
|
</span>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{/* Dismiss Button */}
|
|
||||||
<button
|
|
||||||
onClick={() => setIsDismissed(true)}
|
|
||||||
className="text-muted-foreground hover:text-foreground transition-colors p-1"
|
|
||||||
aria-label="Dismiss banner"
|
|
||||||
>
|
|
||||||
<X className="w-3 h-3" />
|
|
||||||
</button>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user