make sure draw logic works with multiple repls
This commit is contained in:
parent
827993a8c9
commit
375c68775c
7 changed files with 20 additions and 16 deletions
|
|
@ -34,7 +34,7 @@ export function MiniRepl({
|
|||
const canvasId = useMemo(() => `canvas-${id}`, [id]);
|
||||
const shouldDraw = !!punchcard || !!claviature;
|
||||
const shouldShowCanvas = !!punchcard;
|
||||
const drawTime = punchcard ? [0, 4] : [0, 0];
|
||||
const drawTime = punchcard ? [0, 4] : [-2, 2];
|
||||
const [activeNotes, setActiveNotes] = useState([]);
|
||||
|
||||
const init = useCallback(({ code, shouldDraw }) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue