File tree 5 files changed +8
-19
lines changed
5 files changed +8
-19
lines changed Original file line number Diff line number Diff line change @@ -7,12 +7,9 @@ import { useLocation } from "react-router-dom";
7
7
import { useStores } from "../../data" ;
8
8
import { observer } from "mobx-react" ;
9
9
10
- import itl from "../../translations" ;
11
-
12
10
const Sidebarlayout = observer (
13
11
( { contentLeft, contentRight, isFullScreen = true } ) => {
14
12
const { uiStore, projectStore } = useStores ( ) ;
15
- const projectDetails = projectStore . getProjectDetails ( ) ;
16
13
17
14
const [ isDragging , setIsDragging ] = useState ( false ) ;
18
15
const [ modalOpen , setModalOpen ] = useState ( false ) ;
Original file line number Diff line number Diff line change 1
1
// import { Field, Form, Formik } from "formik";
2
2
import Modal , { ModalInterface } from "./Modal" ;
3
- import itl from "../../translations" ;
4
3
import { useStores } from "../../data" ;
5
- import { getFormData } from "../../utils/dom-utils" ;
6
4
import { observer } from "mobx-react" ;
7
5
import { ChangeEvent , SyntheticEvent , useState } from "react" ;
8
6
import { ProjectDetailInterface } from "../../data/project" ;
@@ -19,7 +17,6 @@ import {
19
17
import {
20
18
applyValueModifiers ,
21
19
applyVisibilityModifiers ,
22
- Modifiers ,
23
20
ConfigValues ,
24
21
} from "../../utils/modifier-helpers" ;
25
22
@@ -318,7 +315,7 @@ const EditDetailsModal = observer(
318
315
defaultValue={formInputs.size}
319
316
/>
320
317
</label>*/ }
321
-
318
+
322
319
{ /*<div className="grid">
323
320
<label htmlFor="units">
324
321
{itl.terms.units}
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ import SlideOut from "./SlideOut";
7
7
import { useStores } from "../../../data" ;
8
8
9
9
import { OptionInterface , TemplateInterface } from "../../../data/template" ;
10
- import { Modifiers , ConfigValues } from "../../../utils/modifier-helpers" ;
10
+ import { ConfigValues } from "../../../utils/modifier-helpers" ;
11
11
import { ConfigInterface } from "../../../data/config" ;
12
12
import Spinner from "../../Spinner" ;
13
13
@@ -21,11 +21,6 @@ const Config = observer(({ configId }: ConfigProps) => {
21
21
const template = templateStore . getTemplateByPath (
22
22
config . templatePath ,
23
23
) as TemplateInterface ;
24
- const templateOptions : OptionInterface [ ] =
25
- templateStore . getOptionsForTemplate ( template ?. modelicaPath ) ;
26
- const templateModifiers : Modifiers = templateStore . getModifiersForTemplate (
27
- template ?. modelicaPath ,
28
- ) ;
29
24
const selections : ConfigValues = configStore . getConfigSelections ( configId ) ;
30
25
const allOptions : { [ key : string ] : OptionInterface } =
31
26
templateStore . getAllOptions ( ) ;
Original file line number Diff line number Diff line change 1
1
import React from "react" ;
2
- import ReactDOM from " react-dom" ;
2
+ import { createRoot } from ' react-dom/client' ;
3
3
import { HashRouter as Router } from "react-router-dom" ;
4
4
import App from "./App" ;
5
5
6
- ReactDOM . render (
6
+ const container = document . getElementById ( 'root' ) ;
7
+ const root = createRoot ( container ) ;
8
+ root . render (
7
9
< React . StrictMode >
8
10
< Router >
9
11
< App />
10
12
</ Router >
11
- </ React . StrictMode > ,
12
- document . getElementById ( "root" ) ,
13
+ </ React . StrictMode >
13
14
) ;
Original file line number Diff line number Diff line change 1
- import { storeHooks } from "./store-helpers" ;
2
1
import { deepCopy } from "./utils" ;
3
- import { Modifiers , applyPathModifiers } from "./modifier-helpers" ;
2
+ import { applyPathModifiers } from "./modifier-helpers" ;
4
3
import { OptionInterface } from "../data/template" ;
5
4
6
5
export type Literal = boolean | string | number ;
You can’t perform that action at this time.
0 commit comments