Skip to content

Commit

Permalink
Run npm run lint -- --fix
Browse files Browse the repository at this point in the history
Co-authored-by: akash1810 <[email protected]>
  • Loading branch information
AshCorr and akash1810 committed Jun 24, 2024
1 parent aecf616 commit af9636c
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 34 deletions.
40 changes: 20 additions & 20 deletions packages/dashboard/src/components/testIds.ts
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
export const testIds = {
appConfig: {
container: 'data-testid ac-container',
apiKey: 'data-testid ac-api-key',
apiUrl: 'data-testid ac-api-url',
submit: 'data-testid ac-submit-form',
},
pageOne: {
container: 'data-testid pg-one-container',
navigateToFour: 'data-testid navigate-to-four',
},
pageTwo: {
container: 'data-testid pg-two-container',
},
pageThree: {
container: 'data-testid pg-three-container',
},
pageFour: {
container: 'data-testid pg-four-container',
navigateBack: 'data-testid navigate-back',
},
appConfig: {
container: 'data-testid ac-container',
apiKey: 'data-testid ac-api-key',
apiUrl: 'data-testid ac-api-url',
submit: 'data-testid ac-submit-form',
},
pageOne: {
container: 'data-testid pg-one-container',
navigateToFour: 'data-testid navigate-to-four',
},
pageTwo: {
container: 'data-testid pg-two-container',
},
pageThree: {
container: 'data-testid pg-three-container',
},
pageFour: {
container: 'data-testid pg-four-container',
navigateBack: 'data-testid navigate-back',
},
};
16 changes: 8 additions & 8 deletions packages/dashboard/src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,18 @@ import pluginJson from './plugin.json';
export const PLUGIN_BASE_URL = `/a/${pluginJson.id}`;

export enum ROUTES {
Home = 'home',
WithTabs = 'page-with-tabs',
WithDrilldown = 'page-with-drilldown',
HelloWorld = 'hello-world',
Home = 'home',
WithTabs = 'page-with-tabs',
WithDrilldown = 'page-with-drilldown',
HelloWorld = 'hello-world',
}

export const DATASOURCE_REF = {
uid: 'gdev-testdata',
type: 'testdata',
uid: 'gdev-testdata',
type: 'testdata',
};

export const DATASOURCE_SERVICE_CATALOGUE = {
uid: 'service-catalogue',
type: 'postgres',
uid: 'service-catalogue',
type: 'postgres',
};
8 changes: 4 additions & 4 deletions packages/dashboard/src/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import { App } from './components/App';
import { AppConfig } from './components/AppConfig';

export const plugin = new AppPlugin<object>().setRootPage(App).addConfigPage({
title: 'Configuration',
icon: 'cog',
body: AppConfig,
id: 'configuration',
title: 'Configuration',
icon: 'cog',
body: AppConfig,
id: 'configuration',
});
4 changes: 2 additions & 2 deletions packages/dashboard/src/utils/utils.plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export const PluginPropsContext = createContext<AppRootProps | null>(null);
export const usePluginProps = () => useContext(PluginPropsContext);

export const usePluginMeta = () => {
const pluginProps = usePluginProps();
const pluginProps = usePluginProps();

return pluginProps?.meta;
return pluginProps?.meta;
};

0 comments on commit af9636c

Please sign in to comment.