Added CurseForge integration
Co-authored-by: felix-fx-top <253056634+felix-fx-top@users.noreply.github.com>
This commit is contained in:
parent
1645f937c1
commit
c4476e06fa
@ -184,7 +184,26 @@ const SearchPage = () => {
|
|||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{initialQuery ? (
|
{/* Source filter */}
|
||||||
|
<div className="mb-4 flex flex-wrap gap-2 sm:mb-6">
|
||||||
|
<ToggleGroup
|
||||||
|
type="single"
|
||||||
|
value={source}
|
||||||
|
onValueChange={(val) => val && setSource(val as "all" | "modrinth" | "curseforge")}
|
||||||
|
className="rounded-lg border border-border bg-secondary/50 p-0.5"
|
||||||
|
>
|
||||||
|
<ToggleGroupItem value="all" className="h-8 px-3 text-xs data-[state=on]:bg-primary data-[state=on]:text-primary-foreground">
|
||||||
|
الكل
|
||||||
|
</ToggleGroupItem>
|
||||||
|
<ToggleGroupItem value="modrinth" className="h-8 px-3 text-xs data-[state=on]:bg-primary data-[state=on]:text-primary-foreground">
|
||||||
|
Modrinth
|
||||||
|
</ToggleGroupItem>
|
||||||
|
<ToggleGroupItem value="curseforge" className="h-8 px-3 text-xs data-[state=on]:bg-primary data-[state=on]:text-primary-foreground">
|
||||||
|
CurseForge
|
||||||
|
</ToggleGroupItem>
|
||||||
|
</ToggleGroup>
|
||||||
|
</div>
|
||||||
|
|
||||||
<>
|
<>
|
||||||
<p className="mb-3 text-xs text-muted-foreground sm:mb-4 sm:text-sm">
|
<p className="mb-3 text-xs text-muted-foreground sm:mb-4 sm:text-sm">
|
||||||
نتائج البحث عن: <span className="font-bold text-foreground">"{initialQuery}"</span>
|
نتائج البحث عن: <span className="font-bold text-foreground">"{initialQuery}"</span>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user