mirror of
https://github.com/usememos/memos.git
synced 2025-06-05 22:09:59 +02:00
feat: add eslint to frontend
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
import { useState } from "react";
|
||||
|
||||
function useLoading(initialState: boolean = true) {
|
||||
function useLoading(initialState = true) {
|
||||
const [state, setState] = useState({ isLoading: initialState, isFailed: false, isSucceed: false });
|
||||
|
||||
return {
|
||||
|
@ -1,7 +1,7 @@
|
||||
import { useCallback, useState } from "react";
|
||||
|
||||
function useRefresh() {
|
||||
const [_, setBoolean] = useState<Boolean>(false);
|
||||
const [, setBoolean] = useState<boolean>(false);
|
||||
|
||||
const refresh = useCallback(() => {
|
||||
setBoolean((ps) => {
|
||||
|
Reference in New Issue
Block a user