Fix as per new rules

This commit is contained in:
Manav Rathi
2024-11-19 19:26:23 +05:30
parent 02c9f9f615
commit e6cbd75a52
4 changed files with 4 additions and 3 deletions

View File

@@ -4,7 +4,7 @@ import React from "react";
interface MenuSectionTitleProps {
title: string;
icon?: JSX.Element;
icon?: React.JSX.Element;
}
export const MenuSectionTitle: React.FC<MenuSectionTitleProps> = ({

View File

@@ -10,7 +10,7 @@ interface TitlebarProps {
onClose: () => void;
backIsClose?: boolean;
onRootClose?: () => void;
actionButton?: JSX.Element;
actionButton?: React.JSX.Element;
}
// TODO: Deprecated in favor of SidebarDrawerTitlebarProps where possible (will

View File

@@ -617,7 +617,7 @@ export async function deriveSensitiveKey(passphrase: string, salt: string) {
opsLimit,
memLimit,
};
} catch (e) {
} catch {
opsLimit *= 2;
memLimit /= 2;
}

View File

@@ -59,6 +59,7 @@ const messageWithError = (message: string, e?: unknown) => {
}
} else {
// For the rest rare cases, use the default string serialization of e.
// eslint-disable-next-line @typescript-eslint/no-base-to-string
es = String(e);
}