UNPKG

dm-web-react

Version:

The DM web client with React.

42 lines 1.83 kB
var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); } return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); import * as React from "react"; import { Route } from "react-router-dom"; import injectReducer from "../../common/injectReducer"; import store from "../../common/store"; import BrokersMarketLoader from "./BrokersMarketLoader"; import ExchangeMarketLoader from "./ExchangeMarketLoader"; import reducer from "./store/bond/reducer"; injectReducer(store, { key: "bond", reducer: reducer }); var BrokersMarket = BrokersMarketLoader(store); var ExchangeMarket = ExchangeMarketLoader(store); var bondStyles = { width: "100%", height: "100%", overflow: "hidden", }; var Bond = /** @class */ (function (_super) { __extends(Bond, _super); function Bond() { return _super !== null && _super.apply(this, arguments) || this; } Bond.prototype.render = function () { return (React.createElement("div", { className: "bond", style: bondStyles }, React.createElement(Route, { path: "/bond/brokers-market", exact: true, component: BrokersMarket }), React.createElement(Route, { path: "/bond/exchange-market", exact: true, component: ExchangeMarket }))); }; return Bond; }(React.Component)); export default Bond; //# sourceMappingURL=Bond.js.map