This file contains 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
{ | |
"sections": { | |
"create": [ | |
{ | |
"type": "GROUP", | |
"groupData": { | |
"create": { | |
"group": { | |
"connect": { | |
"id": "cltzq90kldpsq0946v9e9d4s3" |
This file contains 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 gql from 'graphql-tag' | |
import * as ApolloReactCommon from '@apollo/react-common' | |
import * as ApolloReactHooks from '@apollo/react-hooks' | |
export type Maybe<T> = T | null | |
/** All built-in and custom scalars, mapped to their actual values */ | |
export type Scalars = { | |
ID: string | |
String: string | |
Boolean: boolean | |
Int: number |
This file contains 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, { | |
ReactElement, | |
FunctionComponent, | |
useState, | |
useMemo, | |
} from 'react' | |
import { message, Col, Row, Avatar, Button, Icon, Tabs } from 'antd' | |
import { map, filter, get, isEmpty } from 'lodash' | |
import { Spin } from 'antd' | |
import copy from 'copy-to-clipboard' |
This file contains 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 { compact, isString, isEmpty } from 'lodash' | |
import { Currency } from 'generated' | |
type RangeUnit = { | |
[name: string]: { | |
value: string | |
inputLabel: string | |
viewLabel: string | |
} | |
} |
This file contains 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
0 info it worked if it ends with ok | |
1 verbose cli [ '/usr/local/bin/node', '/usr/local/bin/npm', 'i' ] | |
2 info using npm@6.14.4 | |
3 info using node@v13.7.0 | |
4 verbose npm-session 0c921c7a7b619650 | |
5 silly install runPreinstallTopLevelLifecycles | |
6 silly preinstall graphql-auth@ | |
7 info lifecycle graphql-auth@~preinstall: graphql-auth@ | |
8 silly install loadCurrentTree | |
9 silly install readLocalPackageData |
This file contains 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
const flatten = (array) => | |
array.reduce((acc, cur) => | |
acc.concat(Array.isArray(cur) ? flatten(cur) : cur), []); |
This file contains 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
// @flow | |
import React, { Component } from 'react' | |
import Helmet from 'react-helmet' | |
import Auth from 'components/Auth' | |
import NoAccount from 'components/Auth/NoAccount' | |
import Form, { Field } from 'react-formal' | |
import Message from 'components/ValidationMessage' | |
import yup from 'yup' | |
import AuthButton from 'components/AuthButton' |
This file contains 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
// @flow | |
/** | |
* Create the store with asynchronously loaded reducers | |
*/ | |
import { createStore, applyMiddleware, compose } from 'redux' | |
import { Iterable, fromJS } from 'immutable' | |
import { routerMiddleware } from 'react-router-redux' | |
import createSagaMiddleware from 'redux-saga' |
This file contains 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 from 'react' | |
import { shallow, render } from 'enzyme' | |
import AuthButton from '../AuthButton' | |
import Spinner from 'components/Spinner' | |
describe('<AuthButton />', () => { | |
it('should render <Spinner /> if `isLoading` prop is provided', () => { | |
const renderedComponent = shallow( | |
<AuthButton | |
text='Some text' |
This file contains 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
// @flow | |
import React from 'react' | |
import { Button } from 'react-formal' | |
import Spinner from 'components/Spinner' | |
type Props = { | |
messages: Object, | |
hint: string | HTMLElement, | |
text: string | HTMLElement, |
NewerOlder