diff --git a/catalog/app/components/Footer/Footer.tsx b/catalog/app/components/Footer/Footer.tsx
index 4bb85d09152..6efda4f157e 100644
--- a/catalog/app/components/Footer/Footer.tsx
+++ b/catalog/app/components/Footer/Footer.tsx
@@ -14,7 +14,7 @@ import * as GQL from 'utils/GraphQL'
import * as NamedRoutes from 'utils/NamedRoutes'
import copyToClipboard from 'utils/clipboard'
-import STACK_VERSION_QUERY from 'utils/StackVersion.generated'
+import STACK_QUERY from 'utils/Stack.generated'
import bg from './bg.png'
import iconFacebook from './icon-facebook.svg'
@@ -37,15 +37,13 @@ const useVersionStyles = M.makeStyles((t) => ({
function Version() {
// eslint-disable-next-line @typescript-eslint/naming-convention
- const {
- stack: { version },
- } = GQL.useQueryS(STACK_VERSION_QUERY)
+ const { stack } = GQL.useQueryS(STACK_QUERY)
const classes = useVersionStyles()
const { push } = Notifications.use()
const handleCopy = React.useCallback(() => {
- copyToClipboard(version || '')
+ copyToClipboard(stack.version || '')
push('Web catalog container hash has been copied to clipboard')
- }, [push, version])
+ }, [push, stack.version])
return (
- Version: {version}
+ Version: {stack.version}
)
}
diff --git a/catalog/app/utils/StackVersion.generated.ts b/catalog/app/utils/Stack.generated.ts
similarity index 66%
rename from catalog/app/utils/StackVersion.generated.ts
rename to catalog/app/utils/Stack.generated.ts
index fe7581b4737..63b47793d90 100644
--- a/catalog/app/utils/StackVersion.generated.ts
+++ b/catalog/app/utils/Stack.generated.ts
@@ -2,19 +2,19 @@
import type { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core'
import * as Types from '../model/graphql/types.generated'
-export type utils_StackVersionQueryVariables = Types.Exact<{ [key: string]: never }>
+export type utils_StackQueryVariables = Types.Exact<{ [key: string]: never }>
-export type utils_StackVersionQuery = { readonly __typename: 'Query' } & {
+export type utils_StackQuery = { readonly __typename: 'Query' } & {
readonly stack: { readonly __typename: 'Stack' } & Pick
}
-export const utils_StackVersionDocument = {
+export const utils_StackDocument = {
kind: 'Document',
definitions: [
{
kind: 'OperationDefinition',
operation: 'query',
- name: { kind: 'Name', value: 'utils_StackVersion' },
+ name: { kind: 'Name', value: 'utils_Stack' },
selectionSet: {
kind: 'SelectionSet',
selections: [
@@ -30,6 +30,6 @@ export const utils_StackVersionDocument = {
},
},
],
-} as unknown as DocumentNode
+} as unknown as DocumentNode
-export { utils_StackVersionDocument as default }
+export { utils_StackDocument as default }
diff --git a/catalog/app/utils/StackVersion.graphql b/catalog/app/utils/Stack.graphql
similarity index 100%
rename from catalog/app/utils/StackVersion.graphql
rename to catalog/app/utils/Stack.graphql