frontend-plugin-api: refactor coreExtensionData.reactComponent -> .reactElement

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2023-09-13 12:07:46 +02:00
parent f4c98b07e6
commit 5fb348af52
14 changed files with 46 additions and 55 deletions
@@ -36,7 +36,7 @@ const IndexPage = createPageExtension({
id: 'index',
defaultPath: '/',
routeRef: indexRouteRef,
component: async () => {
loader: async () => {
const Component = () => {
const page1Link = useRouteRef(page1RouteRef);
return (
@@ -59,7 +59,7 @@ const Page1 = createPageExtension({
id: 'page1',
defaultPath: '/page1',
routeRef: page1RouteRef,
component: async () => {
loader: async () => {
const Component = () => {
const indexLink = useRouteRef(indexRouteRef);
// const page2Link = useRouteRef(page2RouteRef);