@bento-core/table 1.0.1-ccdihub.94 → 1.0.1-ccdihub.95

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5,7 +5,6 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.default = void 0;
7
7
  var _react = _interopRequireWildcard(require("react"));
8
- var _reactRouterDom = require("react-router-dom");
9
8
  var _core = require("@material-ui/core");
10
9
  var _Close = _interopRequireDefault(require("@material-ui/icons/Close"));
11
10
  var _styles = require("@material-ui/core/styles");
@@ -63,7 +62,8 @@ const CPIModal = _ref => {
63
62
  open,
64
63
  onClose,
65
64
  row,
66
- themeConfig = {}
65
+ themeConfig = {},
66
+ navigation
67
67
  } = _ref;
68
68
  const [sortBy, setSortBy] = (0, _react.useState)('associated_id');
69
69
  const [sortOrder, setSortOrder] = (0, _react.useState)('asc');
@@ -339,17 +339,16 @@ const CPIModal = _ref => {
339
339
  })), /*#__PURE__*/_react.default.createElement(_ReduxAddFile.default, _extends({}, wrapperConfig.items[1], {
340
340
  buttonStyle: addSelectedFilesButton,
341
341
  rowID: row.id
342
- })), /*#__PURE__*/_react.default.createElement(_reactRouterDom.NavLink, {
343
- to: "/fileCentricCart"
344
- }, /*#__PURE__*/_react.default.createElement(_core.Button, {
345
- style: goToCartButton
342
+ })), /*#__PURE__*/_react.default.createElement(_core.Button, {
343
+ style: goToCartButton,
344
+ onClick: () => navigation('/fileCentricCart')
346
345
  }, "GO TO CART", /*#__PURE__*/_react.default.createElement("img", {
347
346
  src: _Cart_Icon.default,
348
347
  alt: "cart",
349
348
  style: {
350
349
  paddingLeft: '30px'
351
350
  }
352
- })))), /*#__PURE__*/_react.default.createElement("div", {
351
+ }))), /*#__PURE__*/_react.default.createElement("div", {
353
352
  className: "footer",
354
353
  style: footer
355
354
  }, "All CPI mappings for a given study can be found in the \"synonyms\" tab of the downloadable manifest, available under the \"Studies\" tab in the Explore Dashboard. For more information about CPI, click\xA0", /*#__PURE__*/_react.default.createElement("a", {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bento-core/table",
3
- "version": "1.0.1-ccdihub.94",
3
+ "version": "1.0.1-ccdihub.95",
4
4
  "main": "dist/index.js",
5
5
  "scripts": {
6
6
  "build": "npm run lint && cross-env-shell rm -rf dist && NODE_ENV=production BABEL_ENV=es babel src --out-dir dist --copy-files",
@@ -1,5 +1,4 @@
1
1
  import React, { useState } from 'react';
2
- import { NavLink } from 'react-router-dom';
3
2
  import {
4
3
  Box,
5
4
  Checkbox,
@@ -69,6 +68,7 @@ const CPIModal = ({
69
68
  onClose,
70
69
  row,
71
70
  themeConfig = {},
71
+ navigation,
72
72
  }) => {
73
73
  const [sortBy, setSortBy] = useState('associated_id');
74
74
  const [sortOrder, setSortOrder] = useState('asc');
@@ -390,14 +390,13 @@ const CPIModal = ({
390
390
  buttonStyle={addSelectedFilesButton}
391
391
  rowID={row.id}
392
392
  />
393
- <NavLink to="/fileCentricCart">
394
- <Button
395
- style={goToCartButton}
396
- >
397
- GO TO CART
398
- <img src={cartIcon} alt="cart" style={{ paddingLeft: '30px' }} />
399
- </Button>
400
- </NavLink>
393
+ <Button
394
+ style={goToCartButton}
395
+ onClick={() => navigation('/fileCentricCart')}
396
+ >
397
+ GO TO CART
398
+ <img src={cartIcon} alt="cart" style={{ paddingLeft: '30px' }} />
399
+ </Button>
401
400
  </div>
402
401
  <div className="footer" style={footer}>
403
402
  All CPI mappings for a given study can be found in the "synonyms"