Bladeren bron

More clean up.

Afshin T. Darian 5 jaren geleden
bovenliggende
commit
44ecf8a7b1

+ 5 - 3
src/variables/utils/toogle/variableSearch.tsx

@@ -59,11 +59,13 @@ const MenuReact = ({ config }: any) => {
   const [toggleState, setToggle] = useState(false);
   const [scope, setScope] = useState('local');
 
-  const toogle = (e: any) => {
+  const toggle = (e: any) => {
     setToggle(!toggleState);
   };
   const changeScope = (newScope: string) => {
-    if (newScope === scope) return;
+    if (newScope === scope) {
+      return;
+    }
     setScope(newScope);
     setToggle(false);
   };
@@ -91,7 +93,7 @@ const MenuReact = ({ config }: any) => {
   return (
     <div>
       <span
-        onClick={e => toogle(e)}
+        onClick={e => toggle(e)}
         className="jp-DebuggerSidebarVariable-Scope-label"
       >
         {scope}

+ 1 - 1
src/variables/utils/variableDescription.ts

@@ -2,7 +2,7 @@ import { Panel, SplitPanel, Widget } from '@phosphor/widgets';
 import { VariableTableDescription } from './variableTableDescription';
 import { IVariablesModel } from '../model';
 import { IVariable } from '../variable';
-import { VariablesSearch } from './toogle';
+import { VariablesSearch } from './toggle';
 
 export class VariableDescription extends Panel {
   readonly searchParams: Widget;

+ 1 - 1
tests/babel.config.js

@@ -1 +1 @@
-module.exports = require("@jupyterlab/testutils/lib/babel.config");
+module.exports = require('@jupyterlab/testutils/lib/babel.config');