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 { compose, | |
lifecycle, | |
withHandlers, | |
withState, | |
withStateHandlers, | |
} from 'recompose'; | |
import { scriptExists } from '../Helper'; | |
import { withSpinnerWhileLoading } from '../Spinner'; | |
export const scriptSrc = 'https://www.google.com/recaptcha/api.js?onload=onloadCallback&render=explicit'; |
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, { Component } from 'react'; | |
import propTypes from 'PropTypes'; | |
import StateWrapper from './StateWrapper'; | |
import CompA from 'CompA'; | |
import CompB from 'CompB'; | |
import CompC from 'CompC'; | |
class MainPage extends Component { | |
render() { | |
//layout are determined by children |
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
// place in __mocks__/react-i18next.js , same directory level with node_modules | |
const i18next = jest.genMockFromModule('react-i18next'); | |
i18next.t = (i) => i; | |
i18next.translate = (c) => (k) => k; | |
module.exports = i18next; |