From cbf3706def43f3025b36c0c8ceb98eb2ab05910c Mon Sep 17 00:00:00 2001 From: Andrii Ieroshenko Date: Thu, 4 Jan 2024 00:29:46 -0800 Subject: [PATCH] update var naming --- packages/jupyter-ai/src/components/chat-messages.tsx | 2 +- .../jupyter-ai/src/components/markdown-component.tsx | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/packages/jupyter-ai/src/components/chat-messages.tsx b/packages/jupyter-ai/src/components/chat-messages.tsx index bf7caf02e..3a541249d 100644 --- a/packages/jupyter-ai/src/components/chat-messages.tsx +++ b/packages/jupyter-ai/src/components/chat-messages.tsx @@ -145,7 +145,7 @@ export function ChatMessages(props: ChatMessagesProps): JSX.Element { /> ))} diff --git a/packages/jupyter-ai/src/components/markdown-component.tsx b/packages/jupyter-ai/src/components/markdown-component.tsx index 917a72c11..8ece2fcc0 100644 --- a/packages/jupyter-ai/src/components/markdown-component.tsx +++ b/packages/jupyter-ai/src/components/markdown-component.tsx @@ -4,30 +4,30 @@ import { Widget } from '@lumino/widgets'; import { LuminoComponent } from './lumino-component'; type MarkdownWidgetProps = { - markdownString: string; + markdownStr: string; rmRegistry: IRenderMimeRegistry; }; type MarkdownComponentProps = { - markdownString: string; + markdownStr: string; rmRegistry: IRenderMimeRegistry; }; class MarkdownWidget extends Widget { private rmRegistry: IRenderMimeRegistry; - private markdownString: string; + private markdownStr: string; constructor(props: MarkdownWidgetProps) { super(); this.rmRegistry = props.rmRegistry; - this.markdownString = props.markdownString; + this.markdownStr = props.markdownStr; this.initializeMarkdownRendering(); } async initializeMarkdownRendering(): Promise { const mimeType = 'text/markdown'; const model = this.rmRegistry.createModel({ - data: { [mimeType]: this.markdownString } + data: { [mimeType]: this.markdownStr } }); const renderer = this.rmRegistry.createRenderer(mimeType); await renderer.renderModel(model); @@ -43,7 +43,7 @@ export function MarkdownComponent( useEffect(() => { if (!widgetRef.current) { widgetRef.current = new MarkdownWidget({ - markdownString: props.markdownString, + markdownStr: props.markdownStr, rmRegistry: props.rmRegistry }); }