@@ -15,7 +15,7 @@ import {
1515import { NotebookPanel } from '@jupyterlab/notebook' ;
1616import { ILauncher } from '@jupyterlab/launcher' ;
1717import '@mantine/core/styles.css' ;
18- import { leetcodeIcon } from './icons/leetcode' ;
18+ import { LeetCodeIcon } from './icons/leetcode' ;
1919
2020import { LeetCodeMainWidget , LeetCodeToolbarWidget } from './widget' ;
2121
@@ -44,14 +44,14 @@ const plugin: JupyterFrontEndPlugin<void> = {
4444 app . commands . addCommand ( command , {
4545 caption : 'LeetCode' ,
4646 label : 'LeetCode' ,
47- icon : args => ( args [ 'isPalette' ] ? undefined : leetcodeIcon ) ,
47+ icon : args => ( args [ 'isPalette' ] ? undefined : LeetCodeIcon ) ,
4848 execute : ( ) => {
4949 if ( ! leetcodeWidget || leetcodeWidget . isDisposed ) {
5050 leetcodeWidget = new MainAreaWidget < LeetCodeMainWidget > ( {
5151 content : new LeetCodeMainWidget ( app , docManager )
5252 } ) ;
5353 leetcodeWidget . title . label = 'LeetCode Widget' ;
54- leetcodeWidget . title . icon = leetcodeIcon ;
54+ leetcodeWidget . title . icon = LeetCodeIcon ;
5555 }
5656 if ( ! tracker . has ( leetcodeWidget ) ) {
5757 tracker . add ( leetcodeWidget ) ;
@@ -77,7 +77,7 @@ const plugin: JupyterFrontEndPlugin<void> = {
7777 restorer . restore ( tracker , { command, name : ( ) => 'leetcode' } ) ;
7878 }
7979 // auto attach to LeetCode notebook
80- docWidgetOpener . opened . connect ( ( sender , widget ) => {
80+ docWidgetOpener . opened . connect ( ( __sender , widget ) => {
8181 if ( widget instanceof NotebookPanel ) {
8282 widget . revealed . then ( ( ) => {
8383 if ( widget . model ?. metadata ?. leetcode_question_info ) {
0 commit comments