-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add LoadingComponent and Link components to Dashboard
- Loading branch information
1 parent
605e3e9
commit 6ecdfd8
Showing
2 changed files
with
78 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
export const LoadingComponent = () => { | ||
|
||
// fetch url from local storage | ||
const url = localStorage.getItem('theURL') || '' | ||
|
||
console.log(URL) | ||
if (url === '') { | ||
return ( | ||
<div className="container my-32 flex flex-wrap flex-col mx-auto justify-center items-center text-center text-4xl font-bold"> | ||
<h1>Seems like you haven't added the URL</h1> | ||
</div> | ||
) | ||
} | ||
else { | ||
return ( | ||
<div className="container my-32 flex flex-wrap flex-col mx-auto justify-center items-center text-center text-4xl font-bold"> | ||
<h1>Something went <span className="text-red-800 dark:text-red-300">wrong</span>...</h1> | ||
<h1>Please check the link again</h1> | ||
</div> | ||
) | ||
} | ||
} |