From 2ea6751e8c55f5a7fe081a71ebfbd170dd2b718f Mon Sep 17 00:00:00 2001 From: Ioannis Georgoulas Date: Tue, 9 Mar 2021 12:14:34 +0000 Subject: [PATCH] Rename to props Signed-off-by: Ioannis Georgoulas --- .../catalog/src/components/CatalogPage/CatalogPage.tsx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/plugins/catalog/src/components/CatalogPage/CatalogPage.tsx b/plugins/catalog/src/components/CatalogPage/CatalogPage.tsx index cf402d6225..efab2ac7fc 100644 --- a/plugins/catalog/src/components/CatalogPage/CatalogPage.tsx +++ b/plugins/catalog/src/components/CatalogPage/CatalogPage.tsx @@ -59,11 +59,11 @@ const useStyles = makeStyles(theme => ({ }, })); -export type CatalogPageOpts = { +export type CatalogPageProps = { initiallySelectedFilter?: string; }; -const CatalogPageContents = (opt: CatalogPageOpts) => { +const CatalogPageContents = (props: CatalogPageProps) => { const styles = useStyles(); const { loading, @@ -84,7 +84,7 @@ const CatalogPageContents = (opt: CatalogPageOpts) => { ] = useState(); const orgName = configApi.getOptionalString('organization.name') ?? 'Company'; const initiallySelectedFilter = - selectedSidebarItem?.id ?? opt.initiallySelectedFilter ?? 'owned'; + selectedSidebarItem?.id ?? props.initiallySelectedFilter ?? 'owned'; const createComponentLink = useRouteRef(createComponentRouteRef); const addMockData = useCallback(async () => { try { @@ -219,8 +219,8 @@ const CatalogPageContents = (opt: CatalogPageOpts) => { ); }; -export const CatalogPage = (opt: CatalogPageOpts) => ( +export const CatalogPage = (props: CatalogPageProps) => ( - + );