forked from MapComplete/MapComplete
Refactoring: remove some more of the deprecated, old-style svg-images
This commit is contained in:
parent
859faead7f
commit
d95e40e1c7
10 changed files with 131 additions and 68 deletions
|
|
@ -2,6 +2,8 @@ import { VariableUiElement } from "./VariableUIElement"
|
|||
import Locale from "../i18n/Locale"
|
||||
import Link from "./Link"
|
||||
import Svg from "../../Svg"
|
||||
import SvelteUIElement from "./SvelteUIElement"
|
||||
import Translate from "../../assets/svg/Translate.svelte"
|
||||
|
||||
/**
|
||||
* The little 'translate'-icon next to every icon + some static helper functions
|
||||
|
|
@ -20,7 +22,7 @@ export default class LinkToWeblate extends VariableUiElement {
|
|||
if (context === undefined || context.indexOf(":") < 0) {
|
||||
return undefined
|
||||
}
|
||||
const icon = Svg.translate_svg().SetClass(
|
||||
const icon = new SvelteUIElement(Translate).SetClass(
|
||||
"rounded-full inline-block w-3 h-3 ml-1 weblate-link self-center"
|
||||
)
|
||||
if (availableTranslations[ln] === undefined) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue