extract getIsAdminInitialized
parent
4357d9b552
commit
20f7c107a9
|
|
@ -1,8 +1,14 @@
|
|||
"use client"
|
||||
|
||||
import { graphql } from "@/lib/gql/generates"
|
||||
import { UserAuthForm } from "./user-auth-form"
|
||||
import { useGraphQL } from "@/lib/hooks/use-graphql"
|
||||
import { getIsAdminInitialized } from "@/lib/gql/request-documents"
|
||||
|
||||
export const getIsAdminInitialized = graphql(/* GraphQL */ `
|
||||
query GetIsAdminInitialized {
|
||||
isAdminInitialized
|
||||
}
|
||||
`)
|
||||
|
||||
export default function Signup() {
|
||||
const { data } = useGraphQL(getIsAdminInitialized)
|
||||
|
|
|
|||
|
|
@ -20,9 +20,3 @@ export const getRegistrationTokenDocument = graphql(/* GraphQL */ `
|
|||
registrationToken
|
||||
}
|
||||
`)
|
||||
|
||||
export const getIsAdminInitialized = graphql(/* GraphQL */ `
|
||||
query GetIsAdminInitialized {
|
||||
isAdminInitialized
|
||||
}
|
||||
`)
|
||||
|
|
|
|||
Loading…
Reference in New Issue