17 lines
526 B
JavaScript
17 lines
526 B
JavaScript
|
import GroupsList from '~/groups_list';
|
||
|
import Landing from '~/landing';
|
||
|
import initGroupsList from '../../../groups';
|
||
|
|
||
|
export default function () {
|
||
|
new GroupsList(); // eslint-disable-line no-new
|
||
|
initGroupsList();
|
||
|
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();
|
||
|
}
|