From 2cffc1f656076803262e0c9ad74e830a9dc92861 Mon Sep 17 00:00:00 2001 From: joseph izang Date: Fri, 20 Aug 2021 12:43:36 +0100 Subject: [PATCH] organize types in pluginManager --- .../src/lib/components/ActivePluginCardContainer.tsx | 2 +- .../src/lib/components/InactivePluginCardContainer.tsx | 2 +- .../plugin-manager/src/lib/components/LocalPluginForm.tsx | 3 ++- libs/remix-ui/plugin-manager/src/lib/components/rootView.tsx | 2 +- .../plugin-manager/src/lib/remix-ui-plugin-manager.tsx | 2 +- libs/remix-ui/plugin-manager/{ => src/types}/query-params.d.ts | 0 libs/remix-ui/plugin-manager/{ => src/types}/registry.d.ts | 0 libs/remix-ui/plugin-manager/src/{ => types}/types.d.ts | 0 8 files changed, 6 insertions(+), 5 deletions(-) rename libs/remix-ui/plugin-manager/{ => src/types}/query-params.d.ts (100%) rename libs/remix-ui/plugin-manager/{ => src/types}/registry.d.ts (100%) rename libs/remix-ui/plugin-manager/src/{ => types}/types.d.ts (100%) diff --git a/libs/remix-ui/plugin-manager/src/lib/components/ActivePluginCardContainer.tsx b/libs/remix-ui/plugin-manager/src/lib/components/ActivePluginCardContainer.tsx index f3fab13d10..d011dfda46 100644 --- a/libs/remix-ui/plugin-manager/src/lib/components/ActivePluginCardContainer.tsx +++ b/libs/remix-ui/plugin-manager/src/lib/components/ActivePluginCardContainer.tsx @@ -1,7 +1,7 @@ /* eslint-disable @typescript-eslint/no-unused-vars */ import { Profile } from '@remixproject/plugin-utils' import React from 'react' -import { PluginManagerComponent } from '../../types' +import { PluginManagerComponent } from '../../types/types' import ActivePluginCard from './ActivePluginCard' import ModuleHeading from './moduleHeading' diff --git a/libs/remix-ui/plugin-manager/src/lib/components/InactivePluginCardContainer.tsx b/libs/remix-ui/plugin-manager/src/lib/components/InactivePluginCardContainer.tsx index c076f5b2b0..a785fed63e 100644 --- a/libs/remix-ui/plugin-manager/src/lib/components/InactivePluginCardContainer.tsx +++ b/libs/remix-ui/plugin-manager/src/lib/components/InactivePluginCardContainer.tsx @@ -1,7 +1,7 @@ /* eslint-disable @typescript-eslint/no-unused-vars */ import { Profile } from '@remixproject/plugin-utils' import React from 'react' -import { PluginManagerComponent, PluginManagerProfile } from '../../types' +import { PluginManagerComponent, PluginManagerProfile } from '../../types/types' import InactivePluginCard from './InactivePluginCard' import ModuleHeading from './moduleHeading' diff --git a/libs/remix-ui/plugin-manager/src/lib/components/LocalPluginForm.tsx b/libs/remix-ui/plugin-manager/src/lib/components/LocalPluginForm.tsx index 32c1486e54..d8ea7c59bb 100644 --- a/libs/remix-ui/plugin-manager/src/lib/components/LocalPluginForm.tsx +++ b/libs/remix-ui/plugin-manager/src/lib/components/LocalPluginForm.tsx @@ -3,8 +3,9 @@ import React, { useReducer, useState } from 'react' import { ModalDialog } from '@remix-ui/modal-dialog' import { Toaster } from '@remix-ui/toaster' import { IframePlugin, WebsocketPlugin } from '@remixproject/engine-web' -import { FormStateProps, PluginManagerComponent } from '../../types' + import { localPluginReducerActionType, localPluginToastReducer } from '../reducers/pluginManagerReducer' +import { FormStateProps, PluginManagerComponent } from '../../types/types' interface LocalPluginFormProps { closeModal: () => void diff --git a/libs/remix-ui/plugin-manager/src/lib/components/rootView.tsx b/libs/remix-ui/plugin-manager/src/lib/components/rootView.tsx index 6971a42aab..b1d972aa9c 100644 --- a/libs/remix-ui/plugin-manager/src/lib/components/rootView.tsx +++ b/libs/remix-ui/plugin-manager/src/lib/components/rootView.tsx @@ -1,6 +1,6 @@ /* eslint-disable @typescript-eslint/no-unused-vars */ import React, { Fragment, ReactNode, useEffect, useState } from 'react' -import { FormStateProps, PluginManagerComponent } from '../../types' +import { FormStateProps, PluginManagerComponent } from '../../types/types' import PermisssionsSettings from './permissions/permissionsSettings' import { Profile } from '@remixproject/plugin-utils' import LocalPluginForm from './LocalPluginForm' diff --git a/libs/remix-ui/plugin-manager/src/lib/remix-ui-plugin-manager.tsx b/libs/remix-ui/plugin-manager/src/lib/remix-ui-plugin-manager.tsx index cc501d0283..0a304a9759 100644 --- a/libs/remix-ui/plugin-manager/src/lib/remix-ui-plugin-manager.tsx +++ b/libs/remix-ui/plugin-manager/src/lib/remix-ui-plugin-manager.tsx @@ -1,7 +1,7 @@ /* eslint-disable @typescript-eslint/no-unused-vars */ import { Profile } from '@remixproject/plugin-utils' import React, { useState } from 'react' -import { RemixUiPluginManagerProps } from '../types' +import { RemixUiPluginManagerProps } from '../types/types' import ActivePluginCardContainer from './components/ActivePluginCardContainer' import InactivePluginCardContainer from './components/InactivePluginCardContainer' import RootView from './components/rootView' diff --git a/libs/remix-ui/plugin-manager/query-params.d.ts b/libs/remix-ui/plugin-manager/src/types/query-params.d.ts similarity index 100% rename from libs/remix-ui/plugin-manager/query-params.d.ts rename to libs/remix-ui/plugin-manager/src/types/query-params.d.ts diff --git a/libs/remix-ui/plugin-manager/registry.d.ts b/libs/remix-ui/plugin-manager/src/types/registry.d.ts similarity index 100% rename from libs/remix-ui/plugin-manager/registry.d.ts rename to libs/remix-ui/plugin-manager/src/types/registry.d.ts diff --git a/libs/remix-ui/plugin-manager/src/types.d.ts b/libs/remix-ui/plugin-manager/src/types/types.d.ts similarity index 100% rename from libs/remix-ui/plugin-manager/src/types.d.ts rename to libs/remix-ui/plugin-manager/src/types/types.d.ts