Skip to content

Instantly share code, notes, and snippets.

View yantakus's full-sized avatar
🙏

Yan Takushevich yantakus

🙏
View GitHub Profile
{
"sections": {
"create": [
{
"type": "GROUP",
"groupData": {
"create": {
"group": {
"connect": {
"id": "cltzq90kldpsq0946v9e9d4s3"
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
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'
import { compact, isString, isEmpty } from 'lodash'
import { Currency } from 'generated'
type RangeUnit = {
[name: string]: {
value: string
inputLabel: string
viewLabel: string
}
}
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
const flatten = (array) =>
array.reduce((acc, cur) =>
acc.concat(Array.isArray(cur) ? flatten(cur) : cur), []);
// @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'
// @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'
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'
// @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,