From 98484695682f8c3e6e38926a7a13eac471204d58 Mon Sep 17 00:00:00 2001 From: Jono M Date: Wed, 22 Nov 2023 15:43:03 +0000 Subject: [PATCH] Added detail page routing to AdminX demo app (#19101) refs https://github.com/TryGhost/Product/issues/4183 --- apps/admin-x-demo/src/DetailPage.tsx | 10 ++ apps/admin-x-demo/src/ListPage.tsx | 244 ++++++++++++++++++++++++++ apps/admin-x-demo/src/MainContent.tsx | 243 +------------------------ 3 files changed, 261 insertions(+), 236 deletions(-) create mode 100644 apps/admin-x-demo/src/DetailPage.tsx create mode 100644 apps/admin-x-demo/src/ListPage.tsx diff --git a/apps/admin-x-demo/src/DetailPage.tsx b/apps/admin-x-demo/src/DetailPage.tsx new file mode 100644 index 0000000000..36f1f82f15 --- /dev/null +++ b/apps/admin-x-demo/src/DetailPage.tsx @@ -0,0 +1,10 @@ +import {Button} from '@tryghost/admin-x-design-system'; +import {useRouting} from '@tryghost/admin-x-framework/routing'; + +const DetailPage: React.FC = () => { + const {updateRoute} = useRouting(); + + return <>Detail page