Skip to content
This repository has been archived by the owner on Sep 19, 2022. It is now read-only.

Commit

Permalink
Fix TS version
Browse files Browse the repository at this point in the history
  • Loading branch information
FeodorFitsner committed Nov 29, 2020
1 parent fb919b1 commit f96eeac
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 5 deletions.
3 changes: 3 additions & 0 deletions client/.vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"typescript.tsdk": "node_modules/typescript/lib"
}
2 changes: 1 addition & 1 deletion client/src/controls/Page.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const Page = React.memo(({ control }) => {
verticalFill: control.verticalFill ? control.verticalFill : false,
horizontalAlign: control.horizontalalign ? control.horizontalalign : "start",
verticalAlign: control.verticalalign ? control.verticalalign : "start",
gap: control.gap ? control.gap : 10,
childrenGap: control.gap ? control.gap : 10,
styles: {
root: {
width: control.width ? control.width : "100%",
Expand Down
2 changes: 1 addition & 1 deletion client/src/controls/Stack.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const MyStack = React.memo(({ control }) => {
verticalFill: true,
horizontalAlign: control.horizontalalign ? control.horizontalalign : "start",
verticalAlign: control.verticalalign ? control.verticalalign : "start",
gap: control.gap ? control.gap : 10,
childrenGap: control.gap ? control.gap : 10,
styles: {
root: {
width: control.width ? control.width : "100%"
Expand Down
2 changes: 1 addition & 1 deletion client/src/controls/Textbox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export const Textbox = React.memo<IControlProps>(({control}) => {
}

const textFieldProps = {
value: control.value ? control.value : null,
value: control.value ? control.value : "",
label: control.label ? control.label : null,
placeholder: control.placeholder ? control.placeholder : null,
errorMessage: control.errormessage ? control.errormessage : null,
Expand Down
4 changes: 2 additions & 2 deletions client/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@
"allowSyntheticDefaultImports": true,
"strict": true,
"forceConsistentCasingInFileNames": true,
"noFallthroughCasesInSwitch": true,
"module": "esnext",
"moduleResolution": "node",
"resolveJsonModule": true,
"isolatedModules": true,
"noEmit": true,
"jsx": "react-jsx",
"noFallthroughCasesInSwitch": true
"jsx": "react-jsx"
},
"include": [
"src"
Expand Down

0 comments on commit f96eeac

Please sign in to comment.