Skip to content

Commit

Permalink
Clean up based on review
Browse files Browse the repository at this point in the history
- Just updating some logging module names, some comments
  • Loading branch information
mofojed committed Jun 26, 2024
1 parent 6d511e7 commit 9c02baf
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion plugins/ui/src/js/src/layout/ReactPanelErrorBoundary.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import Log from '@deephaven/log';
import React, { Component, ReactNode } from 'react';
import WidgetErrorView from '../widget/WidgetErrorView';

const log = Log.module('ErrorBoundary');
const log = Log.module('ReactPanelErrorBoundary');

export interface ReactPanelErrorBoundaryProps {
/** Children to catch errors from. Error will reset when the children have been updated. */
Expand Down
2 changes: 1 addition & 1 deletion plugins/ui/src/js/src/layout/WidgetStatusContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export type WidgetStatus =
| WidgetStatusError
| WidgetStatusReady;

/** Error status of the widget within this context */
/** Status of the widget within this context */
export const WidgetStatusContext = createContext<WidgetStatus | null>(null);

export default WidgetStatusContext;
4 changes: 2 additions & 2 deletions plugins/ui/src/js/src/layout/useWidgetStatus.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import { useContextOrThrow } from '@deephaven/react-hooks';
import { WidgetStatus, WidgetStatusContext } from './WidgetStatusContext';

/**
* Gets the overlay content from the nearest panel context.
* @returns The overlay content or null if not in a panel
* Gets the widget status from the closest WidgetStatusContext.
* @returns Widget status or throws an error if WidgetStatusContext is not set
*/
export function useWidgetStatus(): WidgetStatus {
return useContextOrThrow(WidgetStatusContext);
Expand Down

0 comments on commit 9c02baf

Please sign in to comment.