Skip to content

Commit

Permalink
Removed extra plugin entrypoint
Browse files Browse the repository at this point in the history
  • Loading branch information
bsekachev committed Jun 7, 2024
1 parent d9d391e commit 4f975fd
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 8 deletions.
6 changes: 0 additions & 6 deletions cvat-ui/src/components/cvat-app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -161,9 +161,6 @@ function CVATApplication(): JSX.Element {
const routesToRender = usePlugins((_state) => _state.plugins.components.router, likeProps, state)
.map(({ component: Component }) => Component());

const loggedInModals = usePlugins((_state) => _state.plugins.components.loggedInModals, likeProps, state)
.map(({ component: Component }) => Component);

const { healthInitialized, backendIsHealthy } = state;
const {
userInitialized,
Expand Down Expand Up @@ -390,9 +387,6 @@ function CVATApplication(): JSX.Element {
}}
/>
</Switch>
{ loggedInModals.map((Component, idx) => (
<Component key={idx} targetProps={likeProps} targetState={state} />
))}
{/* eslint-disable-next-line */}
<a id='downloadAnchor' target='_blank' style={{ display: 'none' }} download />
</Layout.Content>
Expand Down
1 change: 0 additions & 1 deletion cvat-ui/src/reducers/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,6 @@ export interface PluginsState {
}
}
router: PluginComponent[];
loggedInModals: PluginComponent[];
}
}

Expand Down
1 change: 0 additions & 1 deletion cvat-ui/src/reducers/plugins-reducer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ const defaultState: PluginsState = {
},
},
router: [],
loggedInModals: [],
settings: {
player: [],
},
Expand Down

0 comments on commit 4f975fd

Please sign in to comment.