File tree 2 files changed +2
-7
lines changed
2 files changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ function Playground() {
48
48
</ div >
49
49
</ div >
50
50
51
- < PlaygroundPanels />
51
+ < PlaygroundPanels state = { state } dispatch = { dispatch } />
52
52
</ div >
53
53
</ Layout >
54
54
) ;
Original file line number Diff line number Diff line change 1
1
import React , { Suspense } from 'react' ;
2
2
import { useState } from 'react' ;
3
- import { useParams } from 'react-router-dom' ;
4
-
5
- import usePlayground from '../hooks/usePlayground' ;
6
3
7
4
import Query from './Query' ;
8
5
import Result from './Result' ;
@@ -20,9 +17,7 @@ function Paper({ children }) {
20
17
) ;
21
18
}
22
19
23
- function PlaygroundPanels ( ) {
24
- const { gistId, gistVersion } = useParams ( ) ;
25
- const [ state , dispatch ] = usePlayground ( { gistId, gistVersion } ) ;
20
+ function PlaygroundPanels ( { state, dispatch } ) {
26
21
const { query, result } = state ;
27
22
const [ panel , setPanel ] = useState ( panels [ 0 ] ) ;
28
23
You can’t perform that action at this time.
0 commit comments