diff --git a/packages/app/src/components/home/HomePage.tsx b/packages/app/src/components/home/HomePage.tsx index 9f8c130e2b..43d1d3e2df 100644 --- a/packages/app/src/components/home/HomePage.tsx +++ b/packages/app/src/components/home/HomePage.tsx @@ -25,7 +25,7 @@ import { } from '@backstage/plugin-home'; import { Content, Header, Page } from '@backstage/core-components'; import { HomePageSearchBar } from '@backstage/plugin-search'; -import { CalendarCard } from '@backstage/plugin-gcalendar'; +import { HomePageCalendar } from '@backstage/plugin-gcalendar'; import Grid from '@material-ui/core/Grid'; import React from 'react'; @@ -102,7 +102,7 @@ export const HomePage = () => ( /> - + diff --git a/plugins/gcalendar/dev/index.tsx b/plugins/gcalendar/dev/index.tsx index bfc4430483..807c2b4d77 100644 --- a/plugins/gcalendar/dev/index.tsx +++ b/plugins/gcalendar/dev/index.tsx @@ -18,7 +18,7 @@ import { Content, Page } from '@backstage/core-components'; import { googleAuthApiRef } from '@backstage/core-plugin-api'; import { createDevApp } from '@backstage/dev-utils'; import { calendarListMock, eventsMock } from './mocks'; -import { gcalendarPlugin, CalendarCard } from '../src/plugin'; +import { gcalendarPlugin, HomePageCalendar } from '../src/plugin'; import { gcalendarApiRef } from '../src'; createDevApp() @@ -52,7 +52,7 @@ createDevApp() element: ( - + ), diff --git a/plugins/gcalendar/src/components/CalendarCard/CalendarCard.test.tsx b/plugins/gcalendar/src/components/CalendarCard/HomePageCalendar.test.tsx similarity index 94% rename from plugins/gcalendar/src/components/CalendarCard/CalendarCard.test.tsx rename to plugins/gcalendar/src/components/CalendarCard/HomePageCalendar.test.tsx index a9ac46982a..c3f2fecdeb 100644 --- a/plugins/gcalendar/src/components/CalendarCard/CalendarCard.test.tsx +++ b/plugins/gcalendar/src/components/CalendarCard/HomePageCalendar.test.tsx @@ -22,10 +22,10 @@ import { renderInTestApp, } from '@backstage/test-utils'; -import { CalendarCardContainer } from '.'; +import { HomePageCalendar } from '.'; import { gcalendarApiRef, gcalendarPlugin } from '../..'; -describe('', () => { +describe('', () => { const primaryCalendar = { id: 'test-1@test.com', summary: 'test-1@test.com', @@ -71,7 +71,7 @@ describe('', () => { [googleAuthApiRef, getAuthMockApi('')], ]} > - + , ); @@ -86,7 +86,7 @@ describe('', () => { [googleAuthApiRef, getAuthMockApi()], ]} > - + , ); @@ -102,7 +102,7 @@ describe('', () => { [googleAuthApiRef, getAuthMockApi()], ]} > - + , ); @@ -120,7 +120,7 @@ describe('', () => { [googleAuthApiRef, getAuthMockApi()], ]} > - + , ); @@ -141,7 +141,7 @@ describe('', () => { [storageApiRef, mockStorage], ]} > - + , ); diff --git a/plugins/gcalendar/src/components/CalendarCard/CalendarCardContainer.tsx b/plugins/gcalendar/src/components/CalendarCard/HomePageCalendar.tsx similarity index 95% rename from plugins/gcalendar/src/components/CalendarCard/CalendarCardContainer.tsx rename to plugins/gcalendar/src/components/CalendarCard/HomePageCalendar.tsx index b1595308ad..afe7a0fada 100644 --- a/plugins/gcalendar/src/components/CalendarCard/CalendarCardContainer.tsx +++ b/plugins/gcalendar/src/components/CalendarCard/HomePageCalendar.tsx @@ -20,7 +20,7 @@ import { CalendarCard } from './CalendarCard'; const queryClient = new QueryClient(); -export const CalendarCardContainer = () => { +export const HomePageCalendar = () => { return ( diff --git a/plugins/gcalendar/src/components/CalendarCard/index.ts b/plugins/gcalendar/src/components/CalendarCard/index.ts index c6f80f89ee..0a898b3cee 100644 --- a/plugins/gcalendar/src/components/CalendarCard/index.ts +++ b/plugins/gcalendar/src/components/CalendarCard/index.ts @@ -13,4 +13,4 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -export { CalendarCardContainer } from './CalendarCardContainer'; +export { HomePageCalendar } from './HomePageCalendar'; diff --git a/plugins/gcalendar/src/index.ts b/plugins/gcalendar/src/index.ts index 68886ec8e8..7c7f0c6374 100644 --- a/plugins/gcalendar/src/index.ts +++ b/plugins/gcalendar/src/index.ts @@ -13,5 +13,5 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -export { gcalendarPlugin, CalendarCard } from './plugin'; +export { gcalendarPlugin, HomePageCalendar } from './plugin'; export * from './api'; diff --git a/plugins/gcalendar/src/plugin.ts b/plugins/gcalendar/src/plugin.ts index d5c6d57cf5..1f98f560f1 100644 --- a/plugins/gcalendar/src/plugin.ts +++ b/plugins/gcalendar/src/plugin.ts @@ -40,12 +40,12 @@ export const gcalendarPlugin = createPlugin({ ], }); -export const CalendarCard = gcalendarPlugin.provide( +export const HomePageCalendar = gcalendarPlugin.provide( createComponentExtension({ - name: 'CalendarCard', + name: 'HomePageCalendar', component: { lazy: () => - import('./components/CalendarCard').then(m => m.CalendarCardContainer), + import('./components/CalendarCard').then(m => m.HomePageCalendar), }, }), );