// export CSS properties into a JavaScript file, so whoever uses it doesn't need to parse CSS over and over postcss( [ postcssCustomProperties( { importFrom: OUTPUT_FILE, exportTo: [ OUTPUT_JS_FILE ], } ), ] ) .process( output.css, { from: INPUT_FILE } ) .catch( ( e ) => { // eslint-disable-next-line no-console console.error( 'calypso-color-schemes', e ); } );
// Within the context of `Elements`, this call to createToken knows which Element to // tokenize, since there's only one in this group. this.props.stripe .createToken({ email: this.props.email }) .then(({ token }) => { this.props.subscribeToPlan(token); }) .catch(() => { this.props.updateRequestPending(false); });
// Within the context of `Elements`, this call to createToken knows which Element to // tokenize, since there's only one in this group. this.props.stripe .createToken({ email: this.props.email }) .then(({ token }) => { this.props.subscribeToPlan(token); }) .catch(() => { this.props.updateRequestPending(false); });