forked from MapComplete/MapComplete
First steps for import helper
This commit is contained in:
parent
5c71bfa294
commit
8cb41d14ff
12 changed files with 217 additions and 146 deletions
20
UI/BigComponents/BackToIndex.ts
Normal file
20
UI/BigComponents/BackToIndex.ts
Normal 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"
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue