forked from MapComplete/MapComplete
Full code cleanup
This commit is contained in:
parent
3a4a2a2016
commit
fa971ffbbf
300 changed files with 16352 additions and 19284 deletions
|
@ -11,7 +11,6 @@ import FeaturedMessage from "./BigComponents/FeaturedMessage";
|
|||
import Toggle from "./Input/Toggle";
|
||||
import {SubtleButton} from "./Base/SubtleButton";
|
||||
import {VariableUiElement} from "./Base/VariableUIElement";
|
||||
import Title from "./Base/Title";
|
||||
import Svg from "../Svg";
|
||||
|
||||
export default class AllThemesGui {
|
||||
|
@ -36,12 +35,12 @@ export default class AllThemesGui {
|
|||
new SubtleButton(undefined, Translations.t.index.logIn).SetStyle("height:min-content").onClick(() => state.osmConnection.AttemptLogin()),
|
||||
state.osmConnection.isLoggedIn),
|
||||
new VariableUiElement(state.osmConnection.userDetails.map(ud => {
|
||||
if(ud.csCount < Constants.userJourney.importHelperUnlock){
|
||||
if (ud.csCount < Constants.userJourney.importHelperUnlock) {
|
||||
return undefined;
|
||||
}
|
||||
return new Combine([
|
||||
new SubtleButton( undefined, Translations.t.importHelper.title, {url: "import_helper.html"}),
|
||||
new SubtleButton( Svg.note_svg(), Translations.t.importInspector.title, {url: "import_viewer.html"})
|
||||
new SubtleButton(undefined, Translations.t.importHelper.title, {url: "import_helper.html"}),
|
||||
new SubtleButton(Svg.note_svg(), Translations.t.importInspector.title, {url: "import_viewer.html"})
|
||||
]).SetClass("p-4 border-2 border-gray-500 m-4 block")
|
||||
})),
|
||||
Translations.t.general.aboutMapcomplete
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue