diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-12-15 22:19:19 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-12-15 22:19:19 +0800 |
commit | 2041e9945edf6f5255185de73c0dc332270e4bbb (patch) | |
tree | 2e8224bc00217b03887650116dc37f55440b4fdc /packages/website/ts/utils/utils.ts | |
parent | 126048bac9f52871b841d9898cabe7cfd265ebb6 (diff) | |
download | dexon-0x-contracts-2041e9945edf6f5255185de73c0dc332270e4bbb.tar dexon-0x-contracts-2041e9945edf6f5255185de73c0dc332270e4bbb.tar.gz dexon-0x-contracts-2041e9945edf6f5255185de73c0dc332270e4bbb.tar.bz2 dexon-0x-contracts-2041e9945edf6f5255185de73c0dc332270e4bbb.tar.lz dexon-0x-contracts-2041e9945edf6f5255185de73c0dc332270e4bbb.tar.xz dexon-0x-contracts-2041e9945edf6f5255185de73c0dc332270e4bbb.tar.zst dexon-0x-contracts-2041e9945edf6f5255185de73c0dc332270e4bbb.zip |
Fix website unused vars
Diffstat (limited to 'packages/website/ts/utils/utils.ts')
-rw-r--r-- | packages/website/ts/utils/utils.ts | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/packages/website/ts/utils/utils.ts b/packages/website/ts/utils/utils.ts index 8b23b6a40..abc2fb2d4 100644 --- a/packages/website/ts/utils/utils.ts +++ b/packages/website/ts/utils/utils.ts @@ -1,7 +1,6 @@ import {ExchangeContractErrs, ZeroExError} from '0x.js'; import BigNumber from 'bignumber.js'; import deepEqual = require('deep-equal'); -import ethUtil = require('ethereumjs-util'); import isMobile = require('is-mobile'); import * as _ from 'lodash'; import * as moment from 'moment'; @@ -9,7 +8,6 @@ import { EtherscanLinkSuffixes, Networks, Order, - OrderParty, ScreenWidths, Side, SideToAssetToken, @@ -110,9 +108,9 @@ export const utils = { }, getColSize(items: number) { const bassCssGridSize = 12; // Source: http://basscss.com/#basscss-grid - const colSize = 12 / items; + const colSize = bassCssGridSize / items; if (!_.isInteger(colSize)) { - throw new Error('Number of cols must be divisible by 12'); + throw new Error(`Number of cols must be divisible by ${bassCssGridSize}`); } return colSize; }, |