fix: remove duplicate close button in search modal
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
import { useState } from "react";
|
||||
import { toast } from "sonner";
|
||||
import { Search, Loader2, Film, Tv, PlusCircle, Egg, X } from "lucide-react";
|
||||
import { Search, Loader2, Film, Tv, PlusCircle, Egg } from "lucide-react";
|
||||
import { Button } from "@/components/ui/button";
|
||||
import {
|
||||
Dialog,
|
||||
@@ -65,17 +65,8 @@ export function SearchRequestModal({
|
||||
<DialogTitle className="font-display text-3xl uppercase italic tracking-tighter flex items-center gap-2">
|
||||
<Search className="h-6 w-6" /> PECK FOR FEED
|
||||
</DialogTitle>
|
||||
<Button
|
||||
variant="ghost"
|
||||
size="icon"
|
||||
onClick={() => onOpenChange(false)}
|
||||
className="rounded-full text-primary-foreground hover:bg-black/20"
|
||||
>
|
||||
<X className="h-6 w-6" />
|
||||
</Button>
|
||||
</div>
|
||||
<DialogDescription className="text-primary-foreground/90 font-bold italic">
|
||||
Movie: {costs.movie} $COOP // TV: {costs.tv} $COOP
|
||||
</DialogDescription>
|
||||
</DialogHeader>
|
||||
|
||||
@@ -109,7 +100,6 @@ export function SearchRequestModal({
|
||||
<div className="relative h-28 w-20 flex-shrink-0 overflow-hidden rounded-xl border-2 border-foreground bg-muted shadow-sm">
|
||||
{r.posterPath ? (
|
||||
<img
|
||||
src={`https://image.tmdb.org/t/p/w200${r.posterPath}`}
|
||||
alt={r.title || r.name}
|
||||
className="h-full w-full object-cover group-hover:scale-110 transition-transform duration-300"
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user