Skip to content

Commit

Permalink
Fix name of SignalPdfComponentProps type
Browse files Browse the repository at this point in the history
  • Loading branch information
alexhad6 committed Oct 23, 2023
1 parent 3f03ddc commit 24dafc6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/plugins/pdfPreviewPlugin.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,15 +69,15 @@ function PdfComponent({
);
}

type UseSignalPdfComponentProps = {
type SignalPdfComponentProps = {
/** The PDF component will rerender when this signal emits. */
update: ISignal<PdfPreviewWidget, void>;
/** Props for the PDF component. */
props: PdfComponentProps;
};

/** Wrapper around a PdfComponent that can update in response to a Lumino signal. */
function SignalPdfComponent({ update, props }: UseSignalPdfComponentProps) {
function SignalPdfComponent({ update, props }: SignalPdfComponentProps) {
return <UseSignal signal={update}>{() => <PdfComponent {...props} />}</UseSignal>;
}

Expand Down

0 comments on commit 24dafc6

Please sign in to comment.