Skip to content

Commit

Permalink
馃洜fix token bug in demo-react
Browse files Browse the repository at this point in the history
  • Loading branch information
stevejpurves committed Nov 22, 2023
1 parent bda77f7 commit ecb3637
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions apps/demo-react/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ function App() {
binderOptions: {
repo: 'executablebooks/thebe-binder-base',
},
serverSettings: {
token: 'test-secret',
},
}),
[path],
);
Expand Down
4 changes: 2 additions & 2 deletions apps/demo-react/src/NotebookPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import { NotebookStatusTray } from './NotebookStatusTray';
import { NotebookErrorTray } from './NotebookErrorTray';

export function NotebookPage({ children }: React.PropsWithChildren) {
const { connecting, ready, config } = useThebeServer();
const { connecting, ready, config, error } = useThebeServer();

if (!connecting && !ready) return null;
if (!connecting && !ready && !error) return null;
return (
<ThebeRenderMimeRegistryProvider>
<ThebeSessionProvider start path={config?.kernels.path}>
Expand Down

0 comments on commit ecb3637

Please sign in to comment.