diff --git a/src/PageManager.tsx b/src/PageManager.tsx index 7c69c91..8aad816 100644 --- a/src/PageManager.tsx +++ b/src/PageManager.tsx @@ -359,38 +359,45 @@ export function PageManager({ maxStackSize = 5 }: { maxStackSize?: number }) { > -
- -
-
- {primaryPages.map(({ name, element, props }) => ( -
- {props ? cloneElement(element as React.ReactElement, props) : element} -
- ))} -
-
- {secondaryStack.map((item, index) => ( +
+
+ +
+
+ {primaryPages.map(({ name, element, props }) => ( +
+ {props ? cloneElement(element as React.ReactElement, props) : element} +
+ ))} +
+
+ {secondaryStack.map((item, index) => ( +
+ {item.component} +
+ ))}
- {item.component} +
- ))} -
-