connected-react-router#goBack JavaScript Examples

The following examples show how to use connected-react-router#goBack. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: index.js    From HexactaLabs-NetCore_React-Initial with Apache License 2.0 6 votes vote down vote up
Create = ({ create: onSubmit, goBack: onCancel }) => {
  return (
    <Container fluid>
      <Row>
          <div className="block-header">
            <h2>Nuevo Proveedor</h2>
            </div>
      </Row>
      <Row>
        <Col>
          <Form onSubmit={onSubmit} handleCancel={onCancel} />
        </Col>
      </Row>
    </Container>
  );
}
Example #2
Source File: index.js    From HexactaLabs-NetCore_React-Level2 with Apache License 2.0 6 votes vote down vote up
Create = ({ create: onSubmit, goBack: onCancel }) => {
  return (
    <Container fluid>
      <Row>
        <h2>Nuevo Tipo Producto</h2>
      </Row>
      <Row>
        <Col>
          <Form onSubmit={onSubmit} handleCancel={onCancel} />
        </Col>
      </Row>
    </Container>
  );
}
Example #3
Source File: index.js    From HexactaLabs-NetCore_React-Final with Apache License 2.0 6 votes vote down vote up
Update = ({
  initialValues,
  update: onSubmit,
  goBack: onCancel,
  productTypeOptions,
  providerOptions
}) => {
  return (
    <Container fluid>
      <Row>
        <Col>
            <div className="block-header">
                <h1>Edición</h1>
            </div>
        </Col>
      </Row>
      <Row>
        <Col>
          <Form
            initialValues={initialValues}
            productTypeOptions={productTypeOptions}
            providerOptions={providerOptions}
            onSubmit={onSubmit}
            handleCancel={onCancel}
          />
        </Col>
      </Row>
    </Container>
  );
}
Example #4
Source File: index.js    From HexactaLabs-NetCore_React-Level1 with Apache License 2.0 6 votes vote down vote up
Create = ({ create: onSubmit, goBack: onCancel }) => {
  return (
    <Container fluid>
      <Row>
        <div className="block-header">
          <h2>Nuevo Tipo de Producto</h2>
        </div>
      </Row>
      <Row>
        <Col>
          <Form onSubmit={onSubmit} handleCancel={onCancel} />
        </Col>
      </Row>
    </Container>
  );
}
Example #5
Source File: LogoutPage.js    From HexactaLabs-NetCore_React-Initial with Apache License 2.0 5 votes vote down vote up
LogoutPage = ({ logout, goBack }) => (
  <Logout confirm={logout} cancel={goBack} />
)
Example #6
Source File: index.js    From HexactaLabs-NetCore_React-Level2 with Apache License 2.0 5 votes vote down vote up
mapDispatchToProps = {
  create,
  goBack
}
Example #7
Source File: index.js    From HexactaLabs-NetCore_React-Final with Apache License 2.0 5 votes vote down vote up
Create = ({
  create: onSubmit,
  goBack: onCancel,
  productTypeOptions,
  providerOptions,
  initialValues
}) => {
  return (
    <Container fluid>
      <Row>
        <h2>Nuevo Producto</h2>
      </Row>
      {!productTypeOptions.length ? (
        <Row>
          <Col>
            <Alert color="warning">
              No existen categorías. Click&nbsp;
              <Link to="../product-type/create">aquí</Link> para cargar nuevas
              categorías.
            </Alert>
          </Col>
        </Row>
      ) : null}
      {!providerOptions.length ? (
        <Row>
          <Col>
            <Alert color="warning">
              No existen proveedores. Click&nbsp;
              <Link to="../provider/create">aquí</Link> para crear uno nuevo.
            </Alert>
          </Col>
        </Row>
      ) : null}
      <Row>
        <Col>
          <Form
            initialValues={initialValues}
            productTypeOptions={productTypeOptions}
            providerOptions={providerOptions}
            onSubmit={onSubmit}
            handleCancel={onCancel}
          />
        </Col>
      </Row>
    </Container>
  );
}
Example #8
Source File: index.js    From HexactaLabs-NetCore_React-Level1 with Apache License 2.0 5 votes vote down vote up
mapDispatchToProps = {
  create,
  goBack,
}