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