Skip to content

Commit

Permalink
🧹lint
Browse files Browse the repository at this point in the history
  • Loading branch information
stevejpurves committed Sep 9, 2024
1 parent d453e0a commit 2cff551
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions packages/jupyter/src/ConnectionStatusTray.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ export function ConnectionStatusTray({ waitForSessions }: { waitForSessions?: bo
const host = options?.thebe?.useBinder
? 'Jupyter'
: options?.thebe?.useJupyterLite
? 'JupyterLite'
: 'Local Server';
? 'JupyterLite'
: 'Local Server';

// TODO radix ui toast!
if (show && error) {
Expand Down
2 changes: 1 addition & 1 deletion packages/jupyter/src/execute/selectors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export function selectAreExecutionScopesBuilding(state: ExecuteScopeState, slug:
}

export function selectExecutionScopeStatus(state: ExecuteScopeState, slug: string) {
return state.pages[slug]?.ready ? 'ready' : state.builds[slug]?.status ?? 'unknown';
return state.pages[slug]?.ready ? 'ready' : (state.builds[slug]?.status ?? 'unknown');
}

//
Expand Down
4 changes: 2 additions & 2 deletions packages/myst-to-react/src/crossReference.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,8 @@ export function CrossReferenceHover({
const parent = useXRefState();
const remoteBaseUrl = remoteBaseUrlIn ?? parent.remoteBaseUrl;
const remote = !!remoteBaseUrl || parent.remote || remoteIn;
const url = parent.remote ? urlIn ?? parent.url : urlIn;
const dataUrl = parent.remote ? dataUrlIn ?? parent.dataUrl : dataUrlIn;
const url = parent.remote ? (urlIn ?? parent.url) : urlIn;
const dataUrl = parent.remote ? (dataUrlIn ?? parent.dataUrl) : dataUrlIn;
const external = !!remoteBaseUrl || (url?.startsWith('http') ?? false);
const scroll: React.MouseEventHandler<HTMLAnchorElement> = (e) => {
e.preventDefault();
Expand Down

0 comments on commit 2cff551

Please sign in to comment.