diff --git a/src/App.jsx b/src/App.jsx
index acfa0c6..ddba91f 100644
--- a/src/App.jsx
+++ b/src/App.jsx
@@ -6,6 +6,7 @@ import Header from "@/layouts/header";
// components
import Starfield from "react-starfield";
import Cursor from "./components/Cursor";
+import Loading from "./components/ui/Loading";
// Data
import menus from "./pages/tree-view/data";
@@ -61,7 +62,7 @@ function App() {
- Loading...}>
+ }>
{
+ return (
+
+ );
+};
+
+export default Loading;
diff --git a/src/pages/CustomHooks/use-fetch/test.jsx b/src/pages/CustomHooks/use-fetch/test.jsx
index 8c8ec4b..610fe63 100644
--- a/src/pages/CustomHooks/use-fetch/test.jsx
+++ b/src/pages/CustomHooks/use-fetch/test.jsx
@@ -11,11 +11,7 @@ const UseFetchHookTest = () => {
useFetch Hook
- {pending ? (
-
- ) : error ? {error}
: data && data.products && data.products.length ? (
+ {pending ? : error ? {error}
: data && data.products && data.products.length ? (
data.products.map((productItem) => (
{productItem.title}
))
diff --git a/src/pages/GithubProfileFinder/GithubProfileFinder.jsx b/src/pages/GithubProfileFinder/GithubProfileFinder.jsx
index 80069ea..061d828 100644
--- a/src/pages/GithubProfileFinder/GithubProfileFinder.jsx
+++ b/src/pages/GithubProfileFinder/GithubProfileFinder.jsx
@@ -2,6 +2,7 @@ import { Button } from "@/components/ui/button";
import { Input } from "@/components/ui/input";
import { useEffect, useState } from "react";
import { User } from "./User";
+import Loading from "@/components/ui/Loading";
const GithubProfileFinder = () => {
const [userName, setUserName] = useState("No0ne003");
@@ -44,11 +45,7 @@ const GithubProfileFinder = () => {
Search
- {loading ? (
-
- ) : userData !== null ? (
+ {loading ? : userData !== null ? (
) : null}
diff --git a/src/pages/LoadMoreData.jsx b/src/pages/LoadMoreData.jsx
index 99e0983..471d4ac 100644
--- a/src/pages/LoadMoreData.jsx
+++ b/src/pages/LoadMoreData.jsx
@@ -1,3 +1,4 @@
+import Loading from "@/components/ui/Loading";
import { Button } from "@/components/ui/button";
import { useEffect, useState } from "react";
@@ -34,11 +35,7 @@ function LoadMoreData() {
}, [products]);
if (loading) {
- return (
-
- );
+ return
}
console.log(products);
diff --git a/src/pages/SearchAutoComplete/SearchAutoComplete.jsx b/src/pages/SearchAutoComplete/SearchAutoComplete.jsx
index b476601..aaf478b 100644
--- a/src/pages/SearchAutoComplete/SearchAutoComplete.jsx
+++ b/src/pages/SearchAutoComplete/SearchAutoComplete.jsx
@@ -1,6 +1,7 @@
import { Input } from "@/components/ui/input";
import { useEffect, useState } from "react";
import { Suggesstions } from "./Suggesstions";
+import Loading from "@/components/ui/Loading";
const SearchAutoComplete = () => {
const [loading, setLoading] = useState(false);
@@ -65,11 +66,7 @@ const SearchAutoComplete = () => {
name="search"
placeholder="Search Users Here..."
/>
- {loading ? (
-
- ) : showDropDown && }
+ {loading ? : showDropDown && }
);
};