Eslint error cleanup (#10657)

* moving two console errors to logger errors

* nixing unused map index

* nixing unused param

* linting

* changing an alert to a toast

* fixing tests

* lint fix

* one letter change, just to see if iti gets CI to pass this test.
This commit is contained in:
Evan Rusackas
2020-08-24 14:04:27 -07:00
committed by GitHub
parent 9461f9c1e0
commit fdfb7cdfd2
7 changed files with 45 additions and 18 deletions

View File

@@ -114,14 +114,12 @@ export default function Button(props: ButtonProps) {
{props.children}
</SupersetButton>
<ul className="dropdown-menu">
{dropdownItems.map(
(dropdownItem: DropdownItemProps, index1: number) => (
<MenuItem key={`${dropdownItem.label}`} href={dropdownItem.url}>
<i className={`fa ${dropdownItem.icon}`} />
&nbsp; {dropdownItem.label}
</MenuItem>
),
)}
{dropdownItems.map((dropdownItem: DropdownItemProps) => (
<MenuItem key={`${dropdownItem.label}`} href={dropdownItem.url}>
<i className={`fa ${dropdownItem.icon}`} />
&nbsp; {dropdownItem.label}
</MenuItem>
))}
</ul>
</div>
);