diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2019-12-23 15:07:48 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2019-12-23 15:07:48 +0000 |
commit | fda8735029d5aea76060f2e2b071ebcd6cd0777e (patch) | |
tree | 785f01501ab938aeed86fea53063e4598dd28d81 /app/assets/javascripts/frequent_items | |
parent | 4aeb8a02c506eaa8f0710ee17edd9e35dd68d280 (diff) | |
download | gitlab-ce-fda8735029d5aea76060f2e2b071ebcd6cd0777e.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/assets/javascripts/frequent_items')
-rw-r--r-- | app/assets/javascripts/frequent_items/utils.js | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/app/assets/javascripts/frequent_items/utils.js b/app/assets/javascripts/frequent_items/utils.js index aba692e4b99..cc1668b1a0d 100644 --- a/app/assets/javascripts/frequent_items/utils.js +++ b/app/assets/javascripts/frequent_items/utils.js @@ -1,12 +1,8 @@ import _ from 'underscore'; -import bp from '~/breakpoints'; +import { GlBreakpointInstance as bp } from '@gitlab/ui/dist/utils'; import { FREQUENT_ITEMS, HOUR_IN_MS } from './constants'; -export const isMobile = () => { - const screenSize = bp.getBreakpointSize(); - - return screenSize === 'sm' || screenSize === 'xs'; -}; +export const isMobile = () => ['md', 'sm', 'xs'].includes(bp.getBreakpointSize()); export const getTopFrequentItems = items => { if (!items) { |