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 from 'react'; | |
import Tooltip from "../Widgets/Tooltip"; | |
import BackupPaymentBlurb from "./BackupPaymentBlurb"; | |
import CardPayment from "./CardPayment"; | |
import {normalizeCreditCard} from '../../lib/Format'; | |
import errorStrings from '../../assets/strings/errors.json'; | |
import store from '../../store'; | |
import PaymentMethodsFromWallet from './PaymentMethodsFromWallet'; | |
import config from '../../config'; |
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
var statuses = [ | |
{ code: 'OK', response: 'Request successful' }, | |
{ code: 'FAILED', response: 'There was an error with your request' }, | |
{ code: 'PENDING', response: 'Your reqeust is still pending' } | |
]; | |
var message = ''; | |
var currentCode = 'OK'; | |
for (var i = 0; i < statuses.length; i++) { | |
if (statuses[i].code === currentCode) { |
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
// original code | |
<script type="text/babel" data-presets="env,react"> | |
const App = () => { | |
return ( | |
<div> | |
<Message /> | |
</div> | |
); | |
} | |
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
const express = require('express'); | |
const redis = require('redis'); | |
client.set('visits', 0); | |
const app = express(); | |
const client = redis.createClient(); | |
app.get('/', (req, res) => { | |
client.get('visits', (err, visits) => { | |
res.send('Number of visits is' + visits); |
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
<Grid item xs={11}> | |
<img src="/images/brand.png" height="75px" width="75px" alt="application icon" /> | |
<h2 className={classes.headerText}> | |
Welcome to Birdseye! | |
</h2> | |
<InputLabel shrink htmlFor="bootstrap-input" className={classes.bootstrapFormLabel}> | |
Email Address |
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 from 'react'; | |
import PropTypes from 'prop-types'; | |
import { withStyles } from '@material-ui/core/styles'; | |
import { Grid, Link, InputLabel, InputBase, Input, Typography } from '@material-ui/core'; | |
import Button from '@material-ui/core/Button'; | |
import { Redirect } from 'react-router'; | |
import classNames from 'classnames'; | |
import gql from 'graphql-tag'; | |
import { Mutation } from 'react-apollo'; |
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 from 'react'; | |
import {View, StyleSheet, ActivityIndicator } from 'react-native'; | |
// import Spinner from 'react-native-spinkit'; | |
import PropTypes from 'prop-types'; | |
// import {v2Colors} from 'theme'; | |
// import {moderateScale} from 'react-native-size-matters'; | |
const Loading = (props) => ( | |
<View style={styles.container}> | |
<ActivityIndicator {...props} |
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
// src/action-alerts/reducer.js: | |
import * as types from 'action-alerts/constants'; | |
import * as helpers from 'action-alerts/helpers/reducer-helpers'; | |
const INITIAL_STATE = { | |
alerts: [], | |
email: '', | |
error: null, | |
loading: false, |
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
//eslint-disable-next-line | |
console.ignoredYellowBox = ["Setting a timer"]; | |
import "./ReactotronConfig"; | |
import React, { PureComponent } from "react"; | |
import { | |
StyleSheet, | |
View, | |
StatusBar, | |
Linking, | |
Platform, |
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 from "react"; | |
import PropTypes from "prop-types"; | |
import { bindActionCreators } from "redux"; | |
import { connect } from "react-redux"; | |
import glamorous from "glamorous"; | |
import { Button } from "../../../../common/components"; | |
import { Card, CardText } from "react-toolbox/lib/card"; | |
import { getCurrentUser } from "../../../../redux-modules/current-user"; | |
import { withLoading } from "../../../../redux-modules/loading-overlay"; | |
import PreferencesActions from "../../actions/customers/preferences"; |