Renaming related fixes

Signed-off-by: Erik Engervall <erik.engervall@gmail.com>
This commit is contained in:
Erik Engervall
2021-04-13 10:56:58 +02:00
parent c98ffab901
commit 5300b2a3fa
4 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -46,4 +46,4 @@ export { plugin as Kafka } from '@backstage/plugin-kafka';
export { todoPlugin } from '@backstage/plugin-todo';
export { badgesPlugin } from '@backstage/plugin-badges';
export { githubDeploymentsPlugin } from '@backstage/plugin-github-deployments';
export { releaseManagerAsAServicePlugin } from '@backstage/plugin-github-release-manager';
export { gitHubReleaseManagerPlugin } from '@backstage/plugin-github-release-manager';
+1 -1
View File
@@ -46,4 +46,4 @@ Looking at the flow above, a common release lifecycle could be:
## Usage
The plugin exports a single full-page extension `ReleaseManagerAsAServicePage`, which one can add to an app like a usual top-level tool on a dedicated route.
The plugin exports a single full-page extension `GitHubReleaseManagerPage`, which one can add to an app like a usual top-level tool on a dedicated route.
@@ -41,7 +41,7 @@ import {
} from './components/ProjectContext';
import { ApiClient } from './api/ApiClient';
interface ReleaseManagerAsAServiceProps {
interface GitHubReleaseManagerProps {
project: Project;
components?: {
default?: {
@@ -71,10 +71,10 @@ const useStyles = makeStyles(() => ({
},
}));
export function ReleaseManagerAsAService({
export function GitHubReleaseManager({
project,
components,
}: ReleaseManagerAsAServiceProps) {
}: GitHubReleaseManagerProps) {
const pluginApiClient = useApi(githubReleaseManagerApiRef);
const apiClient = new ApiClient({
pluginApiClient,
@@ -93,7 +93,7 @@ export function ReleaseManagerAsAService({
);
}
function Cards({ project, components }: ReleaseManagerAsAServiceProps) {
function Cards({ project, components }: GitHubReleaseManagerProps) {
const apiClient = useApiClientContext();
const [refetch, setRefetch] = useState(0);
const gitHubBatchInfo = useAsync(getGitHubBatchInfo({ apiClient }), [
+1 -1
View File
@@ -46,7 +46,7 @@ export const gitHubReleaseManagerPlugin = createPlugin({
export const GitHubReleaseManagerPage = gitHubReleaseManagerPlugin.provide(
createRoutableExtension({
component: () =>
import('./GitHubReleaseManager').then(m => m.ReleaseManagerAsAService),
import('./GitHubReleaseManager').then(m => m.GitHubReleaseManager),
mountPoint: rootRouteRef,
}),
);