yohei0125 4 سال پیش
والد
کامیت
26c9676931
2فایلهای تغییر یافته به همراه5 افزوده شده و 9 حذف شده
  1. 1 3
      packages/app/src/components/Page/RenderTagLabels.tsx
  2. 4 6
      packages/app/src/components/Page/TagLabels.tsx

+ 1 - 3
packages/app/src/components/Page/RenderTagLabels.tsx

@@ -10,9 +10,7 @@ type RenderTagLabelsProps = {
 }
 
 const RenderTagLabels = React.memo((props: RenderTagLabelsProps) => {
-  const {
-    tags, isGuestUser, openEditorModal,
-  } = props;
+  const { tags, isGuestUser, openEditorModal } = props;
   const { t } = useTranslation();
 
   function openEditorHandler() {

+ 4 - 6
packages/app/src/components/Page/TagLabels.tsx

@@ -7,17 +7,15 @@ import RenderTagLabels from './RenderTagLabels';
 import TagEditModal from './TagEditModal';
 
 type TagLabels = {
-  appContainer: AppContainer,
-  tagsUpdateInvoked: any,
   tags: string[],
+  appContainer: AppContainer,
+  tagsUpdateInvoked?: () => Promise<void>,
 }
 
 
 const TagLabels:FC<TagLabels> = (props:TagLabels) => {
-  const {
-    appContainer, tagsUpdateInvoked,
-  } = props;
-  const tags = props.tags;
+  const { tags, appContainer, tagsUpdateInvoked } = props;
+
   const [isTagEditModalShown, setIsTagEditModalShown] = useState(false);
 
   const openEditorModal = () => {