Skip to content

Commit

Permalink
default string added
Browse files Browse the repository at this point in the history
  • Loading branch information
raahulrathore committed Apr 19, 2022
1 parent c12a719 commit a22e345
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,25 @@ function App() {
});
return ref.current;
};
const default_string = `Hmmmm... Couldn't find anything relevant yet! Please try again :)`;

return (
<div className="App">
<NavbarComp setNav={setNav} pageNo={pageNo} setPageNo={setPageNo} />
<ImageCard imageData={nav} />
{!!!nav.length && (
<div
style={{
top: "50%",
left: "50%",
transform: "translate(-50%,-50%)",
position: "fixed",
color: "grey",
}}
>
<h2>{default_string}</h2>
</div>
)}
{!!nav.length && (
<NavigationButton
pageNo={pageNo}
Expand Down

1 comment on commit a22e345

@vercel
Copy link

@vercel vercel bot commented on a22e345 Apr 19, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

photify – ./

photify-git-main-raahulrathore.vercel.app
photify-raahulrathore.vercel.app
photify.vercel.app

Please sign in to comment.