@@ -10,7 +10,6 @@ import React, {
1010import ReactGA from "react-ga4" ;
1111import { useLocation } from "react-router-dom" ;
1212import { stitchObjects } from "../../../data/utils" ;
13- import LayoutRenderer from "./LayoutRenderer" ;
1413import {
1514 AppMessage ,
1615 AppErrorMessage ,
@@ -23,9 +22,11 @@ import {
2322import { axios } from "../../../data/axios" ;
2423import { isLoggedInState , appRunDataState } from "../../../data/atoms" ;
2524import { useSetRecoilState , useRecoilValue } from "recoil" ;
26- import LoginDialog from "../../LoginDialog" ;
2725import logo from "../../../assets/promptly-icon.png" ;
2826
27+ const LayoutRenderer = React . lazy ( ( ) => import ( "./LayoutRenderer" ) ) ;
28+ const LoginDialog = React . lazy ( ( ) => import ( "../../LoginDialog" ) ) ;
29+
2930export const defaultWorkflowLayout = `<pa-layout sx='{"maxWidth": "1200px", "margin": "10px auto"}'>
3031 <pa-paper style="padding: 10px;">
3132 <pa-grid container="true" spacing="2" style="width: 100%">
@@ -53,7 +54,7 @@ export const defaultChatLayout = `<pa-layout sx='{"maxWidth": "1200px", "margin"
5354 </pa-grid>
5455</pa-layout>` ;
5556
56- export function AppRenderer ( { app, ws } ) {
57+ export default function AppRenderer ( { app, ws } ) {
5758 const appSessionId = useRef ( null ) ;
5859 const location = useLocation ( ) ;
5960 const [ layout , setLayout ] = useState ( "" ) ;
0 commit comments