yuken 3 лет назад
Родитель
Сommit
fc39400d12
1 измененных файлов с 2 добавлено и 3 удалено
  1. 2 3
      packages/app/src/components/Admin/Customize/CustomizeHighlightSetting.tsx

+ 2 - 3
packages/app/src/components/Admin/Customize/CustomizeHighlightSetting.tsx

@@ -16,7 +16,7 @@ type Props = {
   adminCustomizeContainer: AdminCustomizeContainer
   adminCustomizeContainer: AdminCustomizeContainer
 }
 }
 
 
-const renderHljsDemo = React.memo((adminCustomizeContainer: AdminCustomizeContainer): JSX.Element => {
+const renderHljsDemo = (adminCustomizeContainer: AdminCustomizeContainer): JSX.Element => {
 
 
   /* eslint-disable max-len */
   /* eslint-disable max-len */
   const html = `<span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">MersenneTwister</span>(<span class="hljs-params">seed</span>) </span>{
   const html = `<span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">MersenneTwister</span>(<span class="hljs-params">seed</span>) </span>{
@@ -35,7 +35,7 @@ const renderHljsDemo = React.memo((adminCustomizeContainer: AdminCustomizeContai
       <code dangerouslySetInnerHTML={{ __html: html }}></code>
       <code dangerouslySetInnerHTML={{ __html: html }}></code>
     </pre>
     </pre>
   );
   );
-});
+};
 
 
 const CustomizeHighlightSetting = (props: Props): JSX.Element => {
 const CustomizeHighlightSetting = (props: Props): JSX.Element => {
   const { adminCustomizeContainer } = props;
   const { adminCustomizeContainer } = props;
@@ -74,7 +74,6 @@ const CustomizeHighlightSetting = (props: Props): JSX.Element => {
         </DropdownItem>
         </DropdownItem>
       );
       );
     });
     });
-
     return items;
     return items;
   }, [adminCustomizeContainer, options]);
   }, [adminCustomizeContainer, options]);