Mao 4 лет назад
Родитель
Сommit
4a395075a9
1 измененных файлов с 1 добавлено и 10 удалено
  1. 1 10
      packages/app/src/components/SearchPage/SearchResultSubNavButton.tsx

+ 1 - 10
packages/app/src/components/SearchPage/SearchResultSubNavButton.tsx

@@ -8,15 +8,6 @@ import PageReactionButtons from '../PageReactionButtons';
 import PageManagement from '../Page/PageManagement';
 import PageManagement from '../Page/PageManagement';
 
 
 
 
-type PageReactionButtonsProps = {
-  pageId: string,
-  currentUserId: string,
-}
-const PageReactionButtonsWrapper: FC<PageReactionButtonsProps> = (props: PageReactionButtonsProps) => {
-  return <PageReactionButtons {...props}></PageReactionButtons>;
-};
-
-
 type SearchResultSubNavButtonProps = {
 type SearchResultSubNavButtonProps = {
   appContainer: AppContainer,
   appContainer: AppContainer,
   isCompactMode: boolean,
   isCompactMode: boolean,
@@ -28,7 +19,7 @@ const SearchResultSubNavButton: FC<SearchResultSubNavButtonProps> = (props: Sear
 
 
   return (
   return (
     <>
     <>
-      <PageReactionButtonsWrapper pageId={pageId} currentUserId={appContainer.currentUserId}></PageReactionButtonsWrapper>
+      <PageReactionButtons pageId={pageId} currentUserId={appContainer.currentUserId}></PageReactionButtons>
       {/*
       {/*
         TODO :
         TODO :
         once 80335 is done, merge 77543 branch(parent of 80335) into 77524.
         once 80335 is done, merge 77543 branch(parent of 80335) into 77524.