diff options
author | Francesco Agosti <francesco.agosti93@gmail.com> | 2018-06-23 04:11:33 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-23 04:11:33 +0800 |
commit | 42884e0871cea39518f23dd680f120b01e5bcb6d (patch) | |
tree | ce3187538ed01e5c7006039893e7470132d257e6 /packages/website/ts/utils | |
parent | 80fe1938b8cc7ad2b72972133cf9594fa4ee04d9 (diff) | |
parent | 7fb8b546f9b20719fcc9b10d77b9e07c0cef6025 (diff) | |
download | dexon-sol-tools-42884e0871cea39518f23dd680f120b01e5bcb6d.tar dexon-sol-tools-42884e0871cea39518f23dd680f120b01e5bcb6d.tar.gz dexon-sol-tools-42884e0871cea39518f23dd680f120b01e5bcb6d.tar.bz2 dexon-sol-tools-42884e0871cea39518f23dd680f120b01e5bcb6d.tar.lz dexon-sol-tools-42884e0871cea39518f23dd680f120b01e5bcb6d.tar.xz dexon-sol-tools-42884e0871cea39518f23dd680f120b01e5bcb6d.tar.zst dexon-sol-tools-42884e0871cea39518f23dd680f120b01e5bcb6d.zip |
Merge pull request #746 from 0xProject/feature/website/relayer-grid-polish
Relayer grid polish
Diffstat (limited to 'packages/website/ts/utils')
-rw-r--r-- | packages/website/ts/utils/utils.ts | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/packages/website/ts/utils/utils.ts b/packages/website/ts/utils/utils.ts index 0bd3dbcfa..0cb965f05 100644 --- a/packages/website/ts/utils/utils.ts +++ b/packages/website/ts/utils/utils.ts @@ -362,4 +362,10 @@ export const utils = { const formattedAmount = unitAmount.toFixed(precision); return `${formattedAmount} ${symbol}`; }, + openUrl(url: string): void { + window.open(url, '_blank'); + }, + isMobile(screenWidth: ScreenWidths): boolean { + return screenWidth === ScreenWidths.Sm; + }, }; |