File tree Expand file tree Collapse file tree 2 files changed +2
-7
lines changed
Expand file tree Collapse file tree 2 files changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ function Playground() {
4848 </ div >
4949 </ div >
5050
51- < PlaygroundPanels />
51+ < PlaygroundPanels state = { state } dispatch = { dispatch } />
5252 </ div >
5353 </ Layout >
5454 ) ;
Original file line number Diff line number Diff line change 11import React , { Suspense } from 'react' ;
22import { useState } from 'react' ;
3- import { useParams } from 'react-router-dom' ;
4-
5- import usePlayground from '../hooks/usePlayground' ;
63
74import Query from './Query' ;
85import Result from './Result' ;
@@ -20,9 +17,7 @@ function Paper({ children }) {
2017 ) ;
2118}
2219
23- function PlaygroundPanels ( ) {
24- const { gistId, gistVersion } = useParams ( ) ;
25- const [ state , dispatch ] = usePlayground ( { gistId, gistVersion } ) ;
20+ function PlaygroundPanels ( { state, dispatch } ) {
2621 const { query, result } = state ;
2722 const [ panel , setPanel ] = useState ( panels [ 0 ] ) ;
2823
You can’t perform that action at this time.
0 commit comments