Skip to content

Commit

Permalink
rename plugin creation
Browse files Browse the repository at this point in the history
  • Loading branch information
haneabogdan committed Aug 3, 2023
1 parent 2bb45f0 commit 01ea2cf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/AppRoot.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import {ErrorBoundary} from '@pages';

import {BasePermissionsResolver, PermissionsProvider} from '@permissions/base';

import getAiInsightsPlugin from '@plugins/definitions/ai-insights';
import createAiInsightsPlugin from '@plugins/definitions/ai-insights';
import {Plugin} from '@plugins/types';

import {useAppDispatch} from '@redux/hooks';
Expand Down Expand Up @@ -107,7 +107,7 @@ const AppRoot: React.FC = () => {
[navigate, location]
);

const plugins: Plugin[] = useMemo(() => [getAiInsightsPlugin()], []);
const plugins: Plugin[] = useMemo(() => [createAiInsightsPlugin()], []);

return composeProviders()
.append(ConfigContext.Provider, {value: config})
Expand Down
4 changes: 2 additions & 2 deletions src/plugins/definitions/ai-insights.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {AiInsightsTab} from '@molecules';

import {Plugin, TestExecutionTabsInterface} from '@plugins/types';

const getAiInsightsPlugin = (): Plugin => ({
const createAiInsightsPlugin = (): Plugin => ({
name: 'ai-insights',
setup: scope => {
scope.appendSlot(
Expand All @@ -27,4 +27,4 @@ const getAiInsightsPlugin = (): Plugin => ({
},
});

export default getAiInsightsPlugin;
export default createAiInsightsPlugin;

0 comments on commit 01ea2cf

Please sign in to comment.