diff --git a/packages/web/app/src/components/error.tsx b/packages/web/app/src/components/error.tsx index b41e8f27b..ebc5cd051 100644 --- a/packages/web/app/src/components/error.tsx +++ b/packages/web/app/src/components/error.tsx @@ -14,7 +14,7 @@ export function ErrorComponent(props: { error: any }) { void flush(2000); }, []); - const isLoggedIn = (session.loading === false && session?.doesSessionExist === true) || false; + const isLoggedIn = !session.loading && session.doesSessionExist; return (
If you wish to track it later or share more details with us,{' '} .
diff --git a/packages/web/app/src/components/ui/query-error.tsx b/packages/web/app/src/components/ui/query-error.tsx index f371f6b2b..b193ffa61 100644 --- a/packages/web/app/src/components/ui/query-error.tsx +++ b/packages/web/app/src/components/ui/query-error.tsx @@ -61,7 +61,7 @@ export function QueryError({ ) : ( )} . diff --git a/packages/web/app/src/components/v2/project-types.tsx b/packages/web/app/src/components/v2/project-types.tsx deleted file mode 100644 index 7d0bcf831..000000000 --- a/packages/web/app/src/components/v2/project-types.tsx +++ /dev/null @@ -1,67 +0,0 @@ -import { ReactElement } from 'react'; -import clsx from 'clsx'; -import { Radio, RadioGroup } from '@/components/v2'; -import { ProjectType } from '@/gql/graphql'; -import { RadioGroupProps } from '@radix-ui/react-radio-group'; -import federation from '../../../public/images/figures/federation.svg'; -import single from '../../../public/images/figures/single.svg'; -import stitching from '../../../public/images/figures/stitching.svg'; - -const PROJECTS: { - title: 'REGULAR' | 'DISTRIBUTED'; - type: ProjectType; - image: string; - description: string; -}[] = [ - { - title: 'REGULAR', - type: ProjectType.Single, - image: single, - description: 'Single API approach', - }, - { - title: 'DISTRIBUTED', - type: ProjectType.Federation, - image: federation, - description: 'Apollo Federation specification', - }, - { - title: 'DISTRIBUTED', - type: ProjectType.Stitching, - image: stitching, - description: 'Built using Schema Stitching', - }, -]; - -export const ProjectTypes = ( - props: Omit