Skip to content

Instantly share code, notes, and snippets.

var sofologyLogin = (function () {
function logInExistingUser(form, email, password, optInMarketing) {
var deferred = new $.Deferred();
hybrisModule.submitLogin(email.val(), password.val(), optInMarketing).then(function (res) {
hybrisModule.retrieveUsersBasket().then(function (res) {
return deferred.resolve({ success: true, response: res });
});
})
.fail(function (res) {
import React from "react";
import PropTypes from "prop-types";
import { withStyles } from "@material-ui/core/styles";
import BottomNavigation from "@material-ui/core/BottomNavigation";
import BottomNavigationAction from "@material-ui/core/BottomNavigationAction";
import RestoreIcon from "@material-ui/icons/Restore";
import FavoriteIcon from "@material-ui/icons/Favorite";
import LocationOnIcon from "@material-ui/icons/LocationOn";
const styles = {
import React, { Component } from 'react';
import { MuiThemeProvider, createMuiTheme } from '@material-ui/core/styles';
import CssBaseline from '@material-ui/core/CssBaseline';
import DeliveryManagementTable from './components/DeliveryManagementTable';
import BottomNav from "./components/BottomNav";
import React, { Component } from 'react';
import { MuiThemeProvider, createMuiTheme } from '@material-ui/core/styles';
import CssBaseline from '@material-ui/core/CssBaseline';
import DeliveryManagementTable from './components/DeliveryManagementTable';
// import BottomNav from "./components/BottomNav";
import React, { Component } from 'react';
import { MuiThemeProvider, createMuiTheme } from '@material-ui/core/styles';
import CssBaseline from '@material-ui/core/CssBaseline';
import DeliveryManagementTable from './components/DeliveryManagementTable';
import TemporaryDrawer from './components/TemporaryDrawer';
class DeliveryRow extends React.Component {
constructor(props) {
super(props);
this.state = {
isBookable: this.props.isBookable,
isBooked: this.props.isBooked,
bookedDate: this.props.details.booked_date,
};
this.updateBookable = this.updateBookable.bind(this);
{
"teams": [
{
"_links": {
"self": {
"href": "http://api.football-data.org/v1/teams/808"
},
"fixtures": {
"href": "http://api.football-data.org/v1/teams/808/fixtures"
},
render() {
const details = this.props.details;
const paletteType = this.props.details.section;
return (
<div key={details.key}>
<h2>This is {paletteType} palette</h2>
<div className="o-grid o-grid--centre o-grid--start o-grid--auto">
{Object.keys(this.state.colours)
.filter(function(filteredSwatches) {
return colours[filteredSwatches].colourType === paletteType;