Chore: fix some type errors, remove more of Svg.ts

This commit is contained in:
Pieter Vander Vennet 2024-01-25 03:33:28 +01:00
parent 2e8b44659a
commit 329a1ed3b4
6 changed files with 36 additions and 18 deletions

View file

@ -11,6 +11,8 @@ import Title from "../Base/Title"
import Svg from "../../Svg"
import Loading from "../Base/Loading"
import Table from "../Base/Table"
import SvelteUIElement from "../Base/SvelteUIElement"
import Search from "../../assets/svg/Search.svelte"
export default class WikidataSearchBox extends InputElement<string> {
public static docs = new Combine([
@ -207,7 +209,7 @@ Another example is to search for species and trees:
return new Combine([
new Title(Translations.t.general.wikipedia.searchWikidata, 3).SetClass("m-2"),
new Combine([
Svg.search_svg().SetStyle("width: 1.5rem"),
new SvelteUIElement(Search).SetClass("w-6"),
searchField.SetClass("m-2 w-full"),
]).SetClass("flex"),
previews,