This commit is contained in:
Max Goodhart
2020-11-09 00:49:36 -08:00
parent 0ca8c62863
commit 022519d928

View File

@@ -388,18 +388,18 @@ function App({ wsEndpoint, role }) {
}) })
}, []) }, [])
const handleSetBlurred = useCallback((idx, blurred) => { const handleSetBlurred = useCallback((viewIdx, blurred) => {
send({ send({
type: 'set-view-blurred', type: 'set-view-blurred',
viewIdx: idx, viewIdx,
blurred: blurred, blurred: blurred,
}) })
}, []) }, [])
const handleReloadView = useCallback((idx) => { const handleReloadView = useCallback((viewIdx) => {
send({ send({
type: 'reload-view', type: 'reload-view',
viewIdx: idx, viewIdx,
}) })
}, []) }, [])
@@ -417,10 +417,10 @@ function App({ wsEndpoint, role }) {
[streams], [streams],
) )
const handleDevTools = useCallback((idx) => { const handleDevTools = useCallback((viewIdx) => {
send({ send({
type: 'dev-tools', type: 'dev-tools',
viewIdx: idx, viewIdx,
}) })
}, []) }, [])