Progress on mobile modal and popover dialogs

This commit is contained in:
mgabdev
2020-05-12 20:36:54 -04:00
parent 2fcbd4131f
commit ccc3206f8f
22 changed files with 166 additions and 80 deletions

View File

@@ -9,10 +9,8 @@ import {
BREAKPOINT_EXTRA_SMALL,
} from '../constants'
const LAYOUT_BREAKPOINT = 630
export function isMobile(width) {
return width <= LAYOUT_BREAKPOINT
return width <= BREAKPOINT_EXTRA_SMALL
}
export function breakpointExtraLarge(width) {

View File

@@ -12,7 +12,7 @@ export const shortNumberFormat = (number) => {
return (
<Fragment>
<FormattedNumber value={number / 1000} maximumFractionDigits={1} />
<FormattedNumber value={number / 1000} maximumFractionDigits={1} />k
</Fragment>
)
}