File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
docs-site/src/components/Example Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,6 @@ import { fi } from "date-fns/locale/fi";
1111import { ptBR } from "date-fns/locale/pt-BR" ;
1212import { enGB } from "date-fns/locale/en-GB" ;
1313import copy from "copy-to-clipboard" ;
14- import { debounce } from "lodash" ;
1514import slugify from "slugify" ;
1615import range from "lodash/range" ;
1716import { themes } from "prism-react-renderer" ;
@@ -94,15 +93,15 @@ export default class CodeExampleComponent extends React.Component<
9493 }
9594 } ;
9695
97- handleCodeChange = debounce ( ( code : string ) => {
96+ handleCodeChange = ( code : string ) => {
9897 const { activeTab } = this . state ;
9998 const codeProp = activeTab === "ts" ? "tsxCode" : "jsxCode" ;
10099
101100 this . setState ( ( state ) => ( {
102101 ...state ,
103102 [ codeProp ] : code ,
104103 } ) ) ;
105- } , 500 ) ;
104+ } ;
106105
107106 handleTabChange = async ( tab : TState [ "activeTab" ] ) => {
108107 const { tsxCode } = this . state ;
You can’t perform that action at this time.
0 commit comments