Skip to content

Commit

Permalink
update admin login page and user homepage
Browse files Browse the repository at this point in the history
  • Loading branch information
suraj122 committed Aug 1, 2023
1 parent 45833ed commit e2db795
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
10 changes: 7 additions & 3 deletions src/components/admin/Login.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,13 @@ function Login() {
<div className="text-center mt-4">
<span className="text-lg text-gold-900">{message}</span>
<br />
<Link className="text-lg text-gold-900" to="/admin/dashboard">
Go to your dashboard
</Link>
{message === "Loggedin successfully" ? (
<Link className="text-lg text-gold-900" to="/admin/dashboard">
Go to dashboard
</Link>
) : (
""
)}
</div>
) : (
""
Expand Down
2 changes: 1 addition & 1 deletion src/components/user/Courses.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ function Courses() {
</div>
) : (
<h2 className="text-3xl font-bold text-gold-900 text-center mt-32">
Loading...
No course listed
</h2>
)}
</section>
Expand Down
4 changes: 2 additions & 2 deletions src/pages/Home.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,8 @@ function Home() {
))}
</div>
) : (
<h2 className="text-3xl font-bold text-gold-900 text-center mt-32">
Loading...
<h2 className="text-xl font-bold text-gold-900 text-center mt-8">
No course listed
</h2>
)}
<div className="text-center">
Expand Down

0 comments on commit e2db795

Please sign in to comment.