mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-01-19 01:16:03 +01:00
Fix ESLint nits
This commit is contained in:
parent
c9b39ad1e5
commit
58717c0e7f
1 changed files with 2 additions and 3 deletions
|
@ -1,4 +1,3 @@
|
||||||
import * as Popper from '@popperjs/core';
|
|
||||||
import * as bootstrap from 'bootstrap';
|
import * as bootstrap from 'bootstrap';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -10,9 +9,9 @@ import * as bootstrap from 'bootstrap';
|
||||||
export default function (): void {
|
export default function (): void {
|
||||||
document.addEventListener('turbo:load', () => {
|
document.addEventListener('turbo:load', () => {
|
||||||
const tooltipTriggerList = document.querySelectorAll('[data-bs-toggle="tooltip"]');
|
const tooltipTriggerList = document.querySelectorAll('[data-bs-toggle="tooltip"]');
|
||||||
const tooltipList = [...tooltipTriggerList].map(tooltipTriggerEl => new bootstrap.Tooltip(tooltipTriggerEl));
|
[...tooltipTriggerList].map(tooltipTriggerEl => new bootstrap.Tooltip(tooltipTriggerEl));
|
||||||
|
|
||||||
const dropdownElementList = document.querySelectorAll('.dropdown-toggle');
|
const dropdownElementList = document.querySelectorAll('.dropdown-toggle');
|
||||||
const dropdownList = [...dropdownElementList].map(dropdownToggleEl => new bootstrap.Dropdown(dropdownToggleEl));
|
[...dropdownElementList].map(dropdownToggleEl => new bootstrap.Dropdown(dropdownToggleEl));
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue