refactoring
This commit is contained in:
1 parent
5a85711cac
commit
27ec0eabb2
17 files changed
+507
-79
No files matched your search
@@ -0,0 +1,11 @@
|
||||
import { useEffect, useState } from "react";
|
||||
|
||||
const useStatusPageFetch = () => {
|
||||
const [isLoading, setIsLoading] = useState(true);
|
||||
const [networkError, setNetworkError] = useState(false);
|
||||
const [statusPage, setStatusPage] = useState(undefined);
|
||||
|
||||
return [statusPage, isLoading, networkError];
|
||||
};
|
||||
|
||||
export { useStatusPageFetch };
|
||||
Reference in new issue
Block a user