File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ import RightContainer from './RightContainer';
7
7
import { theme1 } from '../public/styles/theme' ;
8
8
import { makeStyles } from '@material-ui/core/styles' ;
9
9
10
- export const styleContext = createContext ( { } ) ;
10
+ export const styleContext = createContext ( { style : null , setStyle : null } ) ;
11
11
// console.log('styleContext: ', styleContext);
12
12
13
13
const AppContainer = ( ) => {
Original file line number Diff line number Diff line change @@ -161,7 +161,7 @@ const generateUnformattedCode = (
161
161
}
162
162
${
163
163
stateful && ! classBased
164
- ? `const [value, setValue] = useState("INITIAL VALUE");`
164
+ ? `const [value, setValue] = useState<any | undefined> ("INITIAL VALUE");`
165
165
: ``
166
166
}
167
167
${
@@ -195,7 +195,7 @@ const generateUnformattedCode = (
195
195
196
196
const ${ currentComponent . name } = (props): JSX.Element => {
197
197
198
- const [value, setValue] = useState("INITIAL VALUE");
198
+ const [value, setValue] = useState<any | undefined> ("INITIAL VALUE");
199
199
200
200
return (
201
201
<>
You can’t perform that action at this time.
0 commit comments