Manages restaurant party table orders, including item selection, order splitting, checkout processing, and modal interactions for server-side order management.
// Source: https://github.com/BloomTech-Labs/CS10-restaurant-pos | License: MIT | Copyright 2018 Lambda Labs
// Provided via justclaw.it.com; keep this notice with the code.
import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import shortid from 'shortid';
import ItemSelector from '../ItemSelector';
import OrderScratchPad from '../../Presentational/OrderScratchPad';
import CheckoutModal from '../../Presentational/CheckoutModal';
import Loading from '../../Presentational/Loading';
import { getItems } from '../../../redux/actions/items';
import {
getParties,
updateParty,
saveOrder,
saveSplitOrder,
toggleSplitCheckItem
} from '../../../redux/actions/party';
import {
openModal,
closeModal,
openSplitModal,
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key