forked from MapComplete/MapComplete
Reformat all files with prettier
This commit is contained in:
parent
e22d189376
commit
b541d3eab4
382 changed files with 50893 additions and 35566 deletions
|
@ -1,25 +1,25 @@
|
|||
import BaseUIElement from "../BaseUIElement";
|
||||
import Combine from "./Combine";
|
||||
import BackToIndex from "../BigComponents/BackToIndex";
|
||||
import BaseUIElement from "../BaseUIElement"
|
||||
import Combine from "./Combine"
|
||||
import BackToIndex from "../BigComponents/BackToIndex"
|
||||
|
||||
export default class LeftIndex extends Combine {
|
||||
|
||||
|
||||
constructor(leftContents: BaseUIElement[], mainContent: BaseUIElement, options?: {
|
||||
hideBackButton: false | boolean
|
||||
}) {
|
||||
|
||||
let back: BaseUIElement = undefined;
|
||||
constructor(
|
||||
leftContents: BaseUIElement[],
|
||||
mainContent: BaseUIElement,
|
||||
options?: {
|
||||
hideBackButton: false | boolean
|
||||
}
|
||||
) {
|
||||
let back: BaseUIElement = undefined
|
||||
if (options?.hideBackButton ?? true) {
|
||||
back = new BackToIndex()
|
||||
}
|
||||
super([
|
||||
new Combine([
|
||||
new Combine([back, ...leftContents]).SetClass("sticky top-4"),
|
||||
]).SetClass("ml-4 block w-full md:w-2/6 lg:w-1/6"),
|
||||
mainContent.SetClass("m-8 w-full mb-24")
|
||||
new Combine([new Combine([back, ...leftContents]).SetClass("sticky top-4")]).SetClass(
|
||||
"ml-4 block w-full md:w-2/6 lg:w-1/6"
|
||||
),
|
||||
mainContent.SetClass("m-8 w-full mb-24"),
|
||||
])
|
||||
this.SetClass("h-full block md:flex")
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue