@@ -2,6 +2,7 @@ import { ReactElement } from 'react';
22import cookies from 'js-cookie' ;
33import { LogOutIcon } from 'lucide-react' ;
44import { CombinedError } from 'urql' ;
5+ import { commonErrorStrings } from '@/components/error' ;
56import { Button } from '@/components/ui/button' ;
67import { LAST_VISITED_ORG_KEY } from '@/constants' ;
78import { Link , useRouter } from '@tanstack/react-router' ;
@@ -54,18 +55,18 @@ export function QueryError({
5455 < div className = "text-sm" > { error . graphQLErrors ?. [ 0 ] . message } </ div >
5556 ) : (
5657 < div className = "text-sm" >
57- < p > Don't worry, our technical support got this error reported automatically. </ p >
58+ < p > { commonErrorStrings . reported } </ p >
5859 < p >
59- If you wish to track it later or share more details with us, { ' ' }
60+ { commonErrorStrings . track } { ' ' }
6061 { organizationSlug ? (
6162 < Button variant = "link" className = "h-auto p-0 text-orange-500" asChild >
6263 < Link to = "/$organizationSlug/view/support" params = { { organizationSlug } } >
63- you can use the support
64+ { commonErrorStrings . link }
6465 </ Link >
6566 </ Button >
6667 ) : (
6768 < Button variant = "link" className = "h-auto p-0 text-orange-500" asChild >
68- < a href = "mailto:support@graphql-hive.com" > you can use the support </ a >
69+ < a href = "mailto:support@graphql-hive.com" > { commonErrorStrings . link } </ a >
6970 </ Button >
7071 ) }
7172 .
0 commit comments