Yuki Takei 4 лет назад
Родитель
Сommit
65b9ff9d18
1 измененных файлов с 1 добавлено и 11 удалено
  1. 1 11
      packages/app/src/components/SavePageControls/GrantSelector.tsx

+ 1 - 11
packages/app/src/components/SavePageControls/GrantSelector.tsx

@@ -9,14 +9,11 @@ import {
 } from 'reactstrap';
 } from 'reactstrap';
 
 
 
 
-import AppContainer from '~/client/services/AppContainer';
 import { isNotRef } from '~/interfaces/common';
 import { isNotRef } from '~/interfaces/common';
 import { IUserGroupHasId } from '~/interfaces/user';
 import { IUserGroupHasId } from '~/interfaces/user';
 import { useCurrentUser } from '~/stores/context';
 import { useCurrentUser } from '~/stores/context';
 import { useSWRxMyUserGroupRelations } from '~/stores/user-group';
 import { useSWRxMyUserGroupRelations } from '~/stores/user-group';
 
 
-import { withUnstatedContainers } from '../UnstatedUtils';
-
 
 
 const AVAILABLE_GRANTS = [
 const AVAILABLE_GRANTS = [
   {
   {
@@ -36,8 +33,6 @@ const AVAILABLE_GRANTS = [
 
 
 
 
 type Props = {
 type Props = {
-  appContainer: AppContainer,
-
   disabled?: boolean,
   disabled?: boolean,
   grant: number,
   grant: number,
   grantGroupId?: string,
   grantGroupId?: string,
@@ -225,9 +220,4 @@ const GrantSelector = (props: Props): JSX.Element => {
 
 
 };
 };
 
 
-/**
- * Wrapper component for using unstated
- */
-const GrantSelectorWrapper = withUnstatedContainers(GrantSelector, [AppContainer]);
-
-export default GrantSelectorWrapper;
+export default GrantSelector;