mirror of
https://github.com/logos-messaging/OpChan.git
synced 2026-01-02 12:53:10 +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 { useUIState } from '@/hooks';
|
||||
import { Code } from 'lucide-react';
|
||||
|
||||
const RemixBanner = () => {
|
||||
const [isDismissed, setIsDismissed] = useUIState('remixBannerDismissed', false);
|
||||
|
||||
if (isDismissed) return null;
|
||||
|
||||
return (
|
||||
<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">
|
||||
@ -36,15 +31,6 @@ const RemixBanner = () => {
|
||||
</span>
|
||||
</p>
|
||||
</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>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user