Skip to content

Commit 94e392e

Browse files
fixed import
1 parent 8ac11ce commit 94e392e

File tree

2 files changed

+25
-29
lines changed

2 files changed

+25
-29
lines changed

packages/gatsby-theme/src/components/templates/Tutorial.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ import Layout from '../layout';
44
import { MDXRenderer } from 'gatsby-mdx';
55
import { graphql } from 'gatsby';
66
import { Sidebar, TabletSidebar } from '../TutorialSidebar';
7-
import { TutorialMdxQuery } from 'src/graphqlTypes';
7+
import { TutorialMdxQuery } from '../../graphqlTypes';
88
import { HideOnTablet, ShowOnTablet } from '../../utils/responsive';
99
import { Flex, Box } from '../shared/base';
10-
import { optionalChaining } from 'src/utils/helpers';
10+
import { optionalChaining } from '../../utils/helpers';
1111

1212
type TutorialLayoutProps = { data: TutorialMdxQuery } & RouterProps;
1313

packages/gatsby-theme/src/graphqlTypes.ts

Lines changed: 23 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ export type Directory = Node & {
6666
readonly gid: Maybe<Scalars['Int']>;
6767
readonly rdev: Maybe<Scalars['Int']>;
6868
readonly blksize: Maybe<Scalars['Int']>;
69-
readonly ino: Maybe<Scalars['Float']>;
69+
readonly ino: Maybe<Scalars['Int']>;
7070
readonly blocks: Maybe<Scalars['Int']>;
7171
readonly atimeMs: Maybe<Scalars['Float']>;
7272
readonly mtimeMs: Maybe<Scalars['Float']>;
@@ -309,7 +309,7 @@ export type DirectoryFilterInput = {
309309
readonly gid: Maybe<IntQueryOperatorInput>;
310310
readonly rdev: Maybe<IntQueryOperatorInput>;
311311
readonly blksize: Maybe<IntQueryOperatorInput>;
312-
readonly ino: Maybe<FloatQueryOperatorInput>;
312+
readonly ino: Maybe<IntQueryOperatorInput>;
313313
readonly blocks: Maybe<IntQueryOperatorInput>;
314314
readonly atimeMs: Maybe<FloatQueryOperatorInput>;
315315
readonly mtimeMs: Maybe<FloatQueryOperatorInput>;
@@ -369,7 +369,7 @@ export type File = Node & {
369369
readonly gid: Maybe<Scalars['Int']>;
370370
readonly rdev: Maybe<Scalars['Int']>;
371371
readonly blksize: Maybe<Scalars['Int']>;
372-
readonly ino: Maybe<Scalars['Float']>;
372+
readonly ino: Maybe<Scalars['Int']>;
373373
readonly blocks: Maybe<Scalars['Int']>;
374374
readonly atimeMs: Maybe<Scalars['Float']>;
375375
readonly mtimeMs: Maybe<Scalars['Float']>;
@@ -617,7 +617,7 @@ export type FileFilterInput = {
617617
readonly gid: Maybe<IntQueryOperatorInput>;
618618
readonly rdev: Maybe<IntQueryOperatorInput>;
619619
readonly blksize: Maybe<IntQueryOperatorInput>;
620-
readonly ino: Maybe<FloatQueryOperatorInput>;
620+
readonly ino: Maybe<IntQueryOperatorInput>;
621621
readonly blocks: Maybe<IntQueryOperatorInput>;
622622
readonly atimeMs: Maybe<FloatQueryOperatorInput>;
623623
readonly mtimeMs: Maybe<FloatQueryOperatorInput>;
@@ -1332,10 +1332,10 @@ export enum MdxFieldsEnum {
13321332
FrontmatterVideoId = 'frontmatter___videoId',
13331333
FrontmatterParent = 'frontmatter____PARENT',
13341334
FrontmatterDuration = 'frontmatter___duration',
1335-
FrontmatterTutorialTitle = 'frontmatter___tutorialTitle',
1336-
FrontmatterBanner = 'frontmatter___banner',
13371335
FrontmatterVideoAuthor = 'frontmatter___videoAuthor',
13381336
FrontmatterDraft = 'frontmatter___draft',
1337+
FrontmatterTutorialTitle = 'frontmatter___tutorialTitle',
1338+
FrontmatterBanner = 'frontmatter___banner',
13391339
RawBody = 'rawBody',
13401340
FileAbsolutePath = 'fileAbsolutePath',
13411341
CodeBody = 'code___body',
@@ -1381,10 +1381,10 @@ export type MdxFrontmatter = {
13811381
readonly videoId: Maybe<Scalars['String']>;
13821382
readonly _PARENT: Maybe<Scalars['String']>;
13831383
readonly duration: Maybe<Scalars['Int']>;
1384-
readonly tutorialTitle: Maybe<Scalars['String']>;
1385-
readonly banner: Maybe<Scalars['String']>;
13861384
readonly videoAuthor: Maybe<Scalars['String']>;
13871385
readonly draft: Maybe<Scalars['Boolean']>;
1386+
readonly tutorialTitle: Maybe<Scalars['String']>;
1387+
readonly banner: Maybe<Scalars['String']>;
13881388
};
13891389

13901390
export type MdxFrontmatterFilterInput = {
@@ -1399,10 +1399,10 @@ export type MdxFrontmatterFilterInput = {
13991399
readonly videoId: Maybe<StringQueryOperatorInput>;
14001400
readonly _PARENT: Maybe<StringQueryOperatorInput>;
14011401
readonly duration: Maybe<IntQueryOperatorInput>;
1402-
readonly tutorialTitle: Maybe<StringQueryOperatorInput>;
1403-
readonly banner: Maybe<StringQueryOperatorInput>;
14041402
readonly videoAuthor: Maybe<StringQueryOperatorInput>;
14051403
readonly draft: Maybe<BooleanQueryOperatorInput>;
1404+
readonly tutorialTitle: Maybe<StringQueryOperatorInput>;
1405+
readonly banner: Maybe<StringQueryOperatorInput>;
14061406
};
14071407

14081408
export type MdxGroupConnection = {
@@ -1616,7 +1616,7 @@ export type QueryFileArgs = {
16161616
gid: Maybe<IntQueryOperatorInput>;
16171617
rdev: Maybe<IntQueryOperatorInput>;
16181618
blksize: Maybe<IntQueryOperatorInput>;
1619-
ino: Maybe<FloatQueryOperatorInput>;
1619+
ino: Maybe<IntQueryOperatorInput>;
16201620
blocks: Maybe<IntQueryOperatorInput>;
16211621
atimeMs: Maybe<FloatQueryOperatorInput>;
16221622
mtimeMs: Maybe<FloatQueryOperatorInput>;
@@ -1732,7 +1732,7 @@ export type QueryDirectoryArgs = {
17321732
gid: Maybe<IntQueryOperatorInput>;
17331733
rdev: Maybe<IntQueryOperatorInput>;
17341734
blksize: Maybe<IntQueryOperatorInput>;
1735-
ino: Maybe<FloatQueryOperatorInput>;
1735+
ino: Maybe<IntQueryOperatorInput>;
17361736
blocks: Maybe<IntQueryOperatorInput>;
17371737
atimeMs: Maybe<FloatQueryOperatorInput>;
17381738
mtimeMs: Maybe<FloatQueryOperatorInput>;
@@ -2746,20 +2746,16 @@ export type LayoutInformationQuery = {
27462746
}>;
27472747
};
27482748

2749-
export type AuthenticateUserMutationVariables = {
2750-
code: Scalars['String'];
2751-
};
2752-
2753-
export type AuthenticateUserMutation = {
2754-
readonly authenticate: Maybe<Pick<AuthenticateUserPayload, 'token'>>;
2755-
};
2749+
export type CommunityTutorialQueryQueryVariables = {};
27562750

2757-
export type CurrentUserQueryVariables = {};
2758-
2759-
export type CurrentUserQuery = {
2760-
readonly viewer: Maybe<
2761-
Pick<Viewer, 'id'> & {
2762-
readonly user: Pick<User, 'id' | 'name' | 'avatarUrl' | 'githubHandle'>;
2763-
}
2764-
>;
2751+
export type CommunityTutorialQueryQuery = {
2752+
readonly tutorials: Maybe<{
2753+
readonly edges: ReadonlyArray<{
2754+
readonly node: Pick<Mdx, 'id' | 'fileAbsolutePath'> & {
2755+
readonly frontmatter: Maybe<
2756+
Pick<MdxFrontmatter, 'tutorialTitle' | 'description'>
2757+
>;
2758+
};
2759+
}>;
2760+
}>;
27652761
};

0 commit comments

Comments
 (0)