fix activeFooter state

This commit is contained in:
Felix Roos 2022-11-13 12:25:30 +01:00
parent 21503c0c38
commit aa76419eda
2 changed files with 7 additions and 3 deletions

View file

@ -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,