diff options
author | Hsuan Lee <boczeratul@gmail.com> | 2019-03-06 17:46:50 +0800 |
---|---|---|
committer | Hsuan Lee <boczeratul@gmail.com> | 2019-03-06 17:46:50 +0800 |
commit | 35703539d0f2b4ddb3b11d0de8c9634af59ab71f (patch) | |
tree | ae3731221dbbb3a6fa40060a8d916cfd3f738289 /packages/website/ts/constants/utilities.tsx | |
parent | 92a1fde5b1ecd81b07cdb5bf0c9c1cd3544799db (diff) | |
download | dexon-0x-contracts-stable.tar.gz dexon-0x-contracts-stable.tar.zst dexon-0x-contracts-stable.zip |
Deploy @dexon-foundation/0x.jsstable
Diffstat (limited to 'packages/website/ts/constants/utilities.tsx')
-rw-r--r-- | packages/website/ts/constants/utilities.tsx | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/packages/website/ts/constants/utilities.tsx b/packages/website/ts/constants/utilities.tsx deleted file mode 100644 index ee5c5b4ce..000000000 --- a/packages/website/ts/constants/utilities.tsx +++ /dev/null @@ -1,22 +0,0 @@ -export interface PaddingInterface { - padding?: number | Array<'large' | 'default' | 'small' | number>; - margin?: number | Array<'large' | 'default' | 'small' | number>; -} - -interface PaddingSizes { - [key: string]: string; -} - -export const PADDING_SIZES: PaddingSizes = { - default: '30px', - large: '60px', - small: '15px', -}; - -export const getCSSPadding = (value: number | Array<string | number> = 0): string => { - if (Array.isArray(value)) { - return value.map(val => PADDING_SIZES[val] || `${val}px`).join(' '); - } else { - return `${value}px`; - } -}; |