Skip to content

Commit aea8816

Browse files
committed
no changes
1 parent 2aab317 commit aea8816

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

app/src/containers/AppContainer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import RightContainer from './RightContainer';
77
import { theme1 } from '../public/styles/theme';
88
import { makeStyles } from '@material-ui/core/styles';
99

10-
export const styleContext = createContext({});
10+
export const styleContext = createContext({ style: null, setStyle: null});
1111
// console.log('styleContext: ', styleContext);
1212

1313
const AppContainer = () => {

app/src/helperFunctions/generateCode.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ const generateUnformattedCode = (
161161
}
162162
${
163163
stateful && !classBased
164-
? `const [value, setValue] = useState("INITIAL VALUE");`
164+
? `const [value, setValue] = useState<any | undefined>("INITIAL VALUE");`
165165
: ``
166166
}
167167
${
@@ -195,7 +195,7 @@ const generateUnformattedCode = (
195195
196196
const ${currentComponent.name} = (props): JSX.Element => {
197197
198-
const [value, setValue] = useState("INITIAL VALUE");
198+
const [value, setValue] = useState<any | undefined>("INITIAL VALUE");
199199
200200
return (
201201
<>

0 commit comments

Comments
 (0)