Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2019-12-23 18:07:48 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2019-12-23 18:07:48 +0300
commitfda8735029d5aea76060f2e2b071ebcd6cd0777e (patch)
tree785f01501ab938aeed86fea53063e4598dd28d81 /app/assets/javascripts/frequent_items
parent4aeb8a02c506eaa8f0710ee17edd9e35dd68d280 (diff)
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.js8
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) {