Skip to content

Commit

Permalink
bug fix for text issue and text alignment narayan954#731 and narayan9…
Browse files Browse the repository at this point in the history
  • Loading branch information
biplavmz committed Jul 11, 2023
1 parent 119a854 commit 958189d
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 3 deletions.
6 changes: 6 additions & 0 deletions src/components/SearchBar/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,9 @@
align-items: center;
justify-content: center;
}

.text-color-white{
color: var(--color);

}

11 changes: 9 additions & 2 deletions src/components/SearchBar/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ function SearchBar() {
const [currentPostLink, setCurrentPostLink] = useState("");
const [postText, setPostText] = useState("");
const [posts, setPosts] = useState([]);

const handleSearch = (e) => {
setSearchText(e.target.value);
};
Expand Down Expand Up @@ -58,6 +57,8 @@ function SearchBar() {
post.post.username.toLowerCase().includes(searchText.toLowerCase()),
);



return (
<div>
<SideBar />
Expand Down Expand Up @@ -95,7 +96,13 @@ function SearchBar() {
))}
</>
) : (
"Nothing to search"
<>
{
<div className="text-color-white">
Nothing to search
</div>
}
</>
)}
</div>
</Box>
Expand Down
2 changes: 1 addition & 1 deletion src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -185,8 +185,8 @@ input:focus {
}

.modal__signup {
align-items: center;
display: flex;
justify-content: center;
flex-direction: column;
}

Expand Down

0 comments on commit 958189d

Please sign in to comment.