[#421] added eslint check to CI (#534)

Co-authored-by: Camille Moussu <cmoussu@linagora.com>
This commit is contained in:
Camille Moussu
2026-02-10 10:41:37 +01:00
committed by GitHub
parent 8a6ec8fc39
commit d6e464afad
116 changed files with 1232 additions and 801 deletions
+6 -4
View File
@@ -142,7 +142,7 @@ export default function SearchBar() {
setFilterError(false);
};
const handleContactSelect = (_event: any, contacts: User[]) => {
const handleContactSelect = (contacts: User[]) => {
setSelectedContacts(contacts);
setSearch("");
if (contacts.length > 0) {
@@ -173,7 +173,9 @@ export default function SearchBar() {
dispatch(setView("search"));
setAnchorEl(null);
} else {
filterOpen && setFilterError(true);
if (filterOpen) {
setFilterError(true);
}
}
};
@@ -222,8 +224,8 @@ export default function SearchBar() {
{extended && (
<PeopleSearch
selectedUsers={selectedContacts}
onChange={(event, users) => {
handleContactSelect(event, users);
onChange={(_event, users) => {
handleContactSelect(users);
}}
objectTypes={["user", "contact"]}
onToggleEventPreview={() => {}}
+2 -2
View File
@@ -56,9 +56,9 @@ export function Menubar({
currentView,
onViewChange,
}: MenubarProps) {
const { t, lang } = useI18n(); // deliberately NOT using f()
const { t } = useI18n(); // deliberately NOT using f()
const user = useAppSelector((state) => state.user.userData);
const applist: AppIconProps[] = (window as any).appList ?? [];
const applist: AppIconProps[] = window.appList ?? [];
const [anchorEl, setAnchorEl] = useState<null | HTMLElement>(null);
const [userMenuAnchorEl, setUserMenuAnchorEl] = useState<null | HTMLElement>(
null