summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/pages/explore/groups/index.js
blob: 859b073f1cb8e47647eeae53902102b0b8a20abc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import GroupsList from '~/groups_list';
import Landing from '~/landing';

export default function () {
  new GroupsList(); // eslint-disable-line no-new
  const landingElement = document.querySelector('.js-explore-groups-landing');
  if (!landingElement) return;
  const exploreGroupsLanding = new Landing(
    landingElement,
    landingElement.querySelector('.dismiss-button'),
    'explore_groups_landing_dismissed',
  );
  exploreGroupsLanding.toggle();
}