Skip to content

Commit

Permalink
github profile finder user not found message
Browse files Browse the repository at this point in the history
  • Loading branch information
nuexq committed May 1, 2024
1 parent 2afb6a7 commit 38406cb
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/pages/GithubProfileFinder/User.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,22 @@ export const User = ({ user }) => {
name,
login,
created_at,
message,
} = user;

const createDate = new Date(created_at);

if (message) {
return (
<h1 className="text-3xl my-10">
<span className="font-bold hover:underline decoration-[2px] underline-offset-4">
User
</span>{" "}
Not Found
</h1>
);
}

return (
<div className="flex flex-col justify-center items-center">
<div className="size-48 flex justify-center items-center">
Expand Down

0 comments on commit 38406cb

Please sign in to comment.