This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import type {CodegenConfig} from '@graphql-codegen/cli'; | |
const config: CodegenConfig = { | |
config: { | |
namingConvention: { | |
// Ensure enum values are the same as their name, not a number or camelCased | |
enumValues: 'keep', | |
}, | |
}, | |
schema: ['src/**/schema.graphql'], |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { useState, useCallback } from 'react'; | |
import { | |
Button, | |
Flex, | |
Dialog, | |
Grid, | |
Card, | |
Text, | |
Box, | |
TextInput |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export class InternalServerError extends Schema.TaggedError<InternalServerError>()("InternalServerError", { | |
message: Schema.string, | |
stack: Schema.optional(Schema.string, { exact: true }), | |
}) { | |
code = 500 | |
} | |
export class AppError extends Schema.TaggedError<AppError>()("AppError", { | |
message: Schema.string, | |
}) { |