File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
llmstack/client/src/pages Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -8,12 +8,19 @@ import { SharedAppList } from "../components/apps/SharedAppList";
88import "../index.css" ;
99import GetAppOutlinedIcon from "@mui/icons-material/GetAppOutlined" ;
1010import { AppImportModal } from "../components/apps/AppImporter" ;
11+ import { useRecoilValue } from "recoil" ;
12+ import { isLoggedInState } from "../data/atoms" ;
1113
1214const AppStudioPage = ( ) => {
1315 const { steps, setSteps, setIsOpen } = useTour ( ) ;
1416 const [ cookies , setCookie ] = useCookies ( [ "app-studio-tour" ] ) ;
1517 const containerRef = useRef ( null ) ;
1618 const [ appImportModalOpen , setAppImportModalOpen ] = useState ( false ) ;
19+ const isLoggedIn = useRecoilValue ( isLoggedInState ) ;
20+
21+ if ( ! process . env . REACT_APP_ENABLE_APP_STORE && ! isLoggedIn ) {
22+ window . location . href = "/login" ;
23+ }
1724
1825 // Tour
1926 useEffect ( ( ) => {
You can’t perform that action at this time.
0 commit comments