@@ -75,3 +75,89 @@ const IntroGuestHomePage = () => {
7575} ;
7676
7777export default IntroGuestHomePage ;
78+
79+ // import { Typography, Box } from '@mui/material';
80+ // import PageLayout from '../../components/PageLayout';
81+ // import ImageWithButton from './components/ImageWithButton';
82+ // import { useHistory } from 'react-router-dom';
83+ // import { routes } from '../../utils/routes';
84+ // import { useCurrentUser } from '../../hooks/users.hooks';
85+ // import { useEffect } from 'react';
86+ // import { useHomePageContext } from '../../app/HomePageContext';
87+ // import { useCurrentOrganization } from '../../hooks/organizations.hooks';
88+ // import LoadingIndicator from '../../components/LoadingIndicator';
89+ // import ErrorPage from '../ErrorPage';
90+ // import { useGetImageUrl } from '../../hooks/onboarding.hook';
91+
92+ // const IntroGuestHomePage = () => {
93+ // const user = useCurrentUser();
94+ // const history = useHistory();
95+ // const {
96+ // data: organization,
97+ // isLoading: organizationIsLoading,
98+ // isError: organizationIsError,
99+ // error: organizationError
100+ // } = useCurrentOrganization();
101+ // const { setCurrentHomePage } = useHomePageContext();
102+
103+ // const {
104+ // data: applyInterestImageUrl,
105+ // isLoading: applyImageLoading,
106+ // isError: applyImageIsError,
107+ // error: applyImageError
108+ // } = useGetImageUrl(organization?.applyInterestImageId ?? null);
109+ // const {
110+ // data: exploreGuestImageUrl,
111+ // isLoading: exploreImageLoading,
112+ // isError: exploreImageIsError,
113+ // error: exploreImageError
114+ // } = useGetImageUrl(organization?.exploreAsGuestImageId ?? null);
115+
116+ // useEffect(() => {
117+ // setCurrentHomePage('guest');
118+ // }, [setCurrentHomePage]);
119+
120+ // if (organizationIsError) {
121+ // return <ErrorPage message={organizationError.message} />;
122+ // }
123+ // if (applyImageIsError) return <ErrorPage message={applyImageError.message} />;
124+ // if (exploreImageIsError) return <ErrorPage message={exploreImageError.message} />;
125+
126+ // if (!organization || organizationIsLoading || applyImageLoading || exploreImageLoading) return <LoadingIndicator />;
127+ // if (!applyInterestImageUrl || !exploreGuestImageUrl) return <LoadingIndicator />;
128+
129+ // return (
130+ // <PageLayout title="Home" hidePageTitle>
131+ // <Typography variant="h3" textAlign="center" sx={{ mt: 2, pt: 3 }}>
132+ // {user ? `Welcome, ${user.firstName}!` : 'Welcome, Guest!' }
133+ // </Typography>
134+ // <Box
135+ // sx={{
136+ // display: 'flex',
137+ // justifyContent: 'center',
138+ // alignItems: 'center',
139+ // flexDirection: { xs: 'column', md: 'row' },
140+ // mt: 4,
141+ // padding: '20px'
142+ // }}
143+ // >
144+ // <Box sx={{ display: 'flex', gap: 5 }}>
145+ // <ImageWithButton
146+ // title="Interested in applying"
147+ // imageSrc={applyInterestImageUrl}
148+ // buttonText="Learn More"
149+ // onClick={() => history.push(routes.HOME_PNM)}
150+ // />
151+ // <ImageWithButton
152+ // title="Explore Our Work as a Guest"
153+ // imageSrc={exploreGuestImageUrl}
154+ // buttonText="FinishLine"
155+ // onClick={() => history.push(routes.HOME_MEMBER)}
156+ // />
157+ // </Box>
158+ // </Box>
159+ // </PageLayout>
160+ // );
161+ // };
162+
163+ // export default IntroGuestHomePage;
0 commit comments