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 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) { |
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 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 = { |
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 { MuiThemeProvider, createMuiTheme } from '@material-ui/core/styles'; | |
import CssBaseline from '@material-ui/core/CssBaseline'; | |
import DeliveryManagementTable from './components/DeliveryManagementTable'; | |
import BottomNav from "./components/BottomNav"; | |
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 { MuiThemeProvider, createMuiTheme } from '@material-ui/core/styles'; | |
import CssBaseline from '@material-ui/core/CssBaseline'; | |
import DeliveryManagementTable from './components/DeliveryManagementTable'; | |
// import BottomNav from "./components/BottomNav"; | |
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 { MuiThemeProvider, createMuiTheme } from '@material-ui/core/styles'; | |
import CssBaseline from '@material-ui/core/CssBaseline'; | |
import DeliveryManagementTable from './components/DeliveryManagementTable'; | |
import TemporaryDrawer from './components/TemporaryDrawer'; | |
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
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); |
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
{ | |
"teams": [ | |
{ | |
"_links": { | |
"self": { | |
"href": "http://api.football-data.org/v1/teams/808" | |
}, | |
"fixtures": { | |
"href": "http://api.football-data.org/v1/teams/808/fixtures" | |
}, |
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
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; |
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
// |
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
// |
NewerOlder