From 9f39dc9270ea7ffc41a0d1ba0eca207dfc1760c4 Mon Sep 17 00:00:00 2001 From: Oliver Sand Date: Tue, 16 Mar 2021 17:53:29 +0100 Subject: [PATCH] Fix missing closing tag in source code examples Signed-off-by: Oliver Sand --- docs/plugins/composability.md | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/docs/plugins/composability.md b/docs/plugins/composability.md index e95a67417b..fb3ed7a981 100644 --- a/docs/plugins/composability.md +++ b/docs/plugins/composability.md @@ -393,24 +393,26 @@ export const myPlugin = createPlugin({ routes: { root: rootRouteRef, details: detailsRouteRef, - } -}) + }, +}); -export const MyPage = plugin.provide(createRoutableExtension({ - component: () => import('./components/MyPage').then(m => m.MyPage), - mountPoint: rootRouteRef, -})) +export const MyPage = plugin.provide( + createRoutableExtension({ + component: () => import('./components/MyPage').then(m => m.MyPage), + mountPoint: rootRouteRef, + }), +); // components/MyPage.tsx const MyPage = () => ( {/* myPlugin.routes.root will take the user to this page */} - }> + } /> {/* myPlugin.routes.details will take the user to this page */} - }> + } /> -) +); ``` ### New Catalog Components