fix activeFooter state
This commit is contained in:
parent
21503c0c38
commit
aa76419eda
2 changed files with 7 additions and 3 deletions
|
|
@ -107,6 +107,7 @@ export const AppContext = createContext();
|
|||
function App() {
|
||||
const [view, setView] = useState(); // codemirror view
|
||||
const [lastShared, setLastShared] = useState();
|
||||
const [activeFooter, setActiveFooter] = useState('console');
|
||||
|
||||
const { code, setCode, scheduler, evaluate, activateCode, isDirty, activeCode, pattern, started, stop } = useStrudel({
|
||||
initialCode: '// LOADING',
|
||||
|
|
@ -229,6 +230,8 @@ function App() {
|
|||
isDirty,
|
||||
lastShared,
|
||||
activeCode,
|
||||
activeFooter,
|
||||
setActiveFooter,
|
||||
handleChangeCode,
|
||||
handleTogglePlay,
|
||||
handleUpdate,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue