refactor: remove dismiss functionality and related state management from RemixBanner

This commit is contained in:
Danish Arora 2025-11-21 11:39:29 -05:00
parent 1165cc23c6
commit 34b9c2ae29
No known key found for this signature in database
GPG Key ID: 1C6EF37CDAE1426E

View File

@ -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>