aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/ts/utils
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-07-04 22:35:49 +0800
committerFabio Berger <me@fabioberger.com>2018-07-04 22:35:49 +0800
commit8adc6f0faadb46f88c1f9738b04039d037cfbcb9 (patch)
tree6ea9d1f9c9506bee42dbbe0543a8c407c6c5d05e /packages/website/ts/utils
parent4e783fba57bbd3d389ab52679ca8763bfa03cbf3 (diff)
parentade620f4f7d9ac1e5726681aefcbddf742915a84 (diff)
downloaddexon-sol-tools-8adc6f0faadb46f88c1f9738b04039d037cfbcb9.tar
dexon-sol-tools-8adc6f0faadb46f88c1f9738b04039d037cfbcb9.tar.gz
dexon-sol-tools-8adc6f0faadb46f88c1f9738b04039d037cfbcb9.tar.bz2
dexon-sol-tools-8adc6f0faadb46f88c1f9738b04039d037cfbcb9.tar.lz
dexon-sol-tools-8adc6f0faadb46f88c1f9738b04039d037cfbcb9.tar.xz
dexon-sol-tools-8adc6f0faadb46f88c1f9738b04039d037cfbcb9.tar.zst
dexon-sol-tools-8adc6f0faadb46f88c1f9738b04039d037cfbcb9.zip
merge v2-prototype
Diffstat (limited to 'packages/website/ts/utils')
-rw-r--r--packages/website/ts/utils/utils.ts7
1 files changed, 2 insertions, 5 deletions
diff --git a/packages/website/ts/utils/utils.ts b/packages/website/ts/utils/utils.ts
index fc7901463..2cda41545 100644
--- a/packages/website/ts/utils/utils.ts
+++ b/packages/website/ts/utils/utils.ts
@@ -29,9 +29,6 @@ import { configs } from 'ts/utils/configs';
import { constants } from 'ts/utils/constants';
import * as u2f from 'ts/vendor/u2f_api';
-const LG_MIN_EM = 64;
-const MD_MIN_EM = 52;
-
const isDogfood = (): boolean => _.includes(window.location.href, configs.DOMAIN_DOGFOOD);
export const utils = {
@@ -136,9 +133,9 @@ export const utils = {
// This logic mirrors the CSS media queries in BassCSS for the `lg-`, `md-` and `sm-` CSS
// class prefixes. Do not edit these.
- if (widthInEm > LG_MIN_EM) {
+ if (widthInEm > ScreenWidths.Lg) {
return ScreenWidths.Lg;
- } else if (widthInEm > MD_MIN_EM) {
+ } else if (widthInEm > ScreenWidths.Md) {
return ScreenWidths.Md;
} else {
return ScreenWidths.Sm;