We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent1109c29 commit82d22a4Copy full SHA for 82d22a4
web-app/src/components/Router/index.tsx
@@ -1,5 +1,4 @@
1
import*asReactfrom'react'
2
-import*asCRfrom'typings'
3
import{createMachine}from'../../services/state/machine'
4
import{useMachine}from'../../services/xstate-react'
5
importRoutefrom'./Route'
@@ -9,11 +8,6 @@ interface Props {
9
8
children:any
10
}
11
12
-interfaceCloneElementProps{
13
-context:CR.MachineContext
14
-send(action:CR.Action):void
15
-}
16
-
17
declareletacquireVsCodeApi:any
18
19
consteditor=acquireVsCodeApi()
@@ -41,7 +35,7 @@ const useRouter = () => {
41
35
42
36
},[])
43
37
44
-constRouter=({ children}:Props):React.ReactElement<CloneElementProps>|null=>{
38
+constRouter=({ children}:Props):React.ReactElement<any>|null=>{
45
39
constchildArray=React.Children.toArray(children)
46
40
for(constchildofchildArray){
47
// match path