Misc linting fixes.

This commit is contained in:
Patrick Fic
2025-03-19 13:52:49 -07:00
parent 3277af73f6
commit e67309ed4d
12 changed files with 36 additions and 30 deletions

View File

@@ -12,7 +12,11 @@ const ErrorBoundaryFallback: React.FC<FallbackProps> = ({
status={"500"}
title={t("app.errors.errorboundary")}
subTitle={error?.message}
extra={[<Button onClick={resetErrorBoundary}>Try again</Button>]}
extra={[
<Button key="try-again" onClick={resetErrorBoundary}>
Try again
</Button>,
]}
/>
);
};

View File

@@ -5,7 +5,7 @@ import ipcTypes from "../../../../util/ipcTypes.json";
const SettingsWatcher: React.FC = () => {
const { t } = useTranslation();
const handleStart = () => {
const handleStart = (): void => {
window.electron.ipcRenderer.send(ipcTypes.toMain.watcher.start);
};

View File

@@ -5,15 +5,13 @@ import log from "electron-log/renderer";
import { signInWithEmailAndPassword } from "firebase/auth";
import errorTypeCheck from "../../../../util/errorTypeCheck";
type SignInFormProps = {};
type FieldType = {
username: string;
password: string;
remember?: string;
};
const SignInForm: React.FC<SignInFormProps> = ({}) => {
const SignInForm: React.FC = () => {
const onFinish: FormProps<FieldType>["onFinish"] = async (values) => {
log.info("Form submitted successfully:", values);
const { username, password } = values;

View File

@@ -1,5 +1,5 @@
import { initializeApp } from "firebase/app";
import { getAuth, updatePassword, updateProfile } from "firebase/auth";
import { getAuth } from "firebase/auth";
// TODO: Replace the following with your app's Firebase project configuration
const firebaseConfig = JSON.parse(import.meta.env.VITE_FIREBASE_CONFIG);