First steps for import helper

This commit is contained in:
Pieter Vander Vennet 2022-01-18 21:26:07 +01:00
parent 5c71bfa294
commit 8cb41d14ff
12 changed files with 217 additions and 146 deletions

View file

@ -0,0 +1,20 @@
import {SubtleButton} from "../Base/SubtleButton";
import Combine from "../Base/Combine";
import Svg from "../../Svg";
import Translations from "../i18n/Translations";
import BaseUIElement from "../BaseUIElement";
export default class BackToIndex extends SubtleButton {
constructor(message? : string | BaseUIElement) {
super(
Svg.back_svg().SetStyle("height: 1.5rem;"),
message ?? Translations.t.general.backToMapcomplete,
{
url: "./index.html"
}
)
}
}

View file

@ -110,7 +110,7 @@ export default class MoreScreen extends Combine {
]), {url: linkText, newTab: false});
}
private static CreateProffessionalSerivesButton() {
public static CreateProffessionalSerivesButton() {
const t = Translations.t.professional.indexPage;
return new Combine([
new Title(t.hook, 4),