Skip to content

Commit

Permalink
Merge pull request #2038 from ever-co/fix/app-blank
Browse files Browse the repository at this point in the history
fix: App Showing Blank issue
  • Loading branch information
evereq authored Dec 30, 2023
2 parents c11e087 + 772e56b commit b3f1034
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions apps/web/lib/app/authenticator.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { useOrganizationTeams } from '@app/hooks';
import { useQuery } from '@app/hooks/useQuery';
import { getAuthenticatedUserDataAPI } from '@app/services/client/api';
import { userState } from '@app/stores';
import TeamPageSkeleton from '@components/shared/skeleton/TeamPageSkeleton';
import { CreateTeamModal } from 'lib/features';
import { JoinTeamModal } from 'lib/features/team/join-team-modal';
import { GetServerSidePropsContext, NextPage, PreviewData } from 'next';
Expand All @@ -18,8 +17,6 @@ type Params = {
};

export function withAuthentication(Component: NextPage<any, any>, params: Params) {
const { showPageSkeleton = true } = params;

const AppComponent = (props: any) => {
// const { trans } = useTranslation();
const [user, setUser] = useRecoilState(userState);
Expand Down Expand Up @@ -55,9 +52,9 @@ export function withAuthentication(Component: NextPage<any, any>, params: Params
if (!user || loading) {
return <></>;
}
if (showPageSkeleton) {
return <TeamPageSkeleton />;
}
// if (showPageSkeleton) {
// return <TeamPageSkeleton />;
// }

return (
<div>
Expand Down

0 comments on commit b3f1034

Please sign in to comment.