Skip to content

Commit

Permalink
update header
Browse files Browse the repository at this point in the history
  • Loading branch information
0xaaiden committed Jun 19, 2023
1 parent 70a10e4 commit 4173bc9
Showing 1 changed file with 16 additions and 11 deletions.
27 changes: 16 additions & 11 deletions src/components/Header.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,22 @@ const Header = ({ onSearch }) => {
<header className="header">
<h1 className="header-logo">smoldata.</h1>
<div className="header-content">
<div className="header-search">
<input
type="text"
className="search-field"
placeholder="Search..."
onChange={onSearch}
/>
<button type="submit" className="search-btn">
<i className="ph-magnifying-glass-bold"></i>
</button>
</div>
{user.user ? (
<div className="header-search">
<input
type="text"
className="search-field"
placeholder="Search..."
onChange={onSearch}
/>
<button type="submit" className="search-btn">
<i className="ph-magnifying-glass-bold"></i>
</button>
</div>
) : (
<div className="header-search"></div>
)}

<div className="header-nav">
<button
className="header-connect bg-orange-100"
Expand Down

1 comment on commit 4173bc9

@vercel
Copy link

@vercel vercel bot commented on 4173bc9 Jun 19, 2023

Choose a reason for hiding this comment

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

Please sign in to comment.