Misc linting fixes.
This commit is contained in:
@@ -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>,
|
||||
]}
|
||||
/>
|
||||
);
|
||||
};
|
||||
|
||||
@@ -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);
|
||||
};
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user