소스 검색

add todo comemnt

kaori 3 년 전
부모
커밋
a632ff8614
2개의 변경된 파일5개의 추가작업 그리고 1개의 파일을 삭제
  1. 4 1
      packages/app/src/components/PageEditor/PreviewWithSuspense.jsx
  2. 1 0
      packages/app/src/components/SuspenseUtils.jsx

+ 4 - 1
packages/app/src/components/PageEditor/PreviewWithSuspense.jsx

@@ -1,9 +1,12 @@
 import React from 'react';
+
 import PropTypes from 'prop-types';
-import Preview from './Preview';
 
+// TODO: Omit withLoadingSppiner
 import { withLoadingSppiner } from '../SuspenseUtils';
 
+import Preview from './Preview';
+
 function PagePreview(props) {
   if (props.markdown == null || props.pagePath == null) {
     if (props.error !== '') {

+ 1 - 0
packages/app/src/components/SuspenseUtils.jsx

@@ -5,6 +5,7 @@ import React, { Suspense } from 'react';
  * If you throw a Promise in the component, it will display a sppiner
  * @param {object} Component A React.Component or functional component
  */
+// TODO: Omit withLoadingSppiner
 export function withLoadingSppiner(Component) {
   return (props => function getWithLoadingSpinner() {
     return (