Skip to content

Commit 3313603

Browse files
fix(overmind-devtools-client): fix typing issues
1 parent 551d2ca commit 3313603

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

packages/node_modules/overmind-devtools-client/src/components/Devtools/index.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,15 +62,13 @@ const Devtools: FunctionComponent = () => {
6262
)
6363
}
6464

65-
let text =`const overmind = createOvermind(config, {
65+
let code = `const overmind = createOvermind(config, {
6666
devtools: "localhost:${state.port}",
6767
})`
6868
return state.isConnecting ? (
6969
<div className={styles.wrapper}>
7070
<h1>Waiting for an app to connect to {state.port}...</h1>
71-
<pre className={styles.code}>
72-
{text}
73-
</pre>
71+
<pre className={styles.code}>{code}</pre>
7472
</div>
7573
) : (
7674
<Workspace />

packages/node_modules/overmind-devtools-client/src/overmind/utils.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ export const createApp = (data: Partial<App>): App =>
5252
expandedStatePaths: [''],
5353
expandedComponents: [],
5454
selectedStatePath: null,
55+
connectionState: 'connected',
5556
},
5657
data
5758
)

packages/overmind-website/src/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const overmind = createOvermind(
1515
devtools: false,
1616
}
1717
: {
18-
devtools: 'localhost:3032',
18+
devtools: 'localhost:3031',
1919
}
2020
)
2121
setConfig({

0 commit comments

Comments
 (0)