Skip to content

Commit

Permalink
Removal
Browse files Browse the repository at this point in the history
  • Loading branch information
Shan-Weaviate committed Nov 14, 2024
1 parent a25654b commit e654151
Showing 1 changed file with 1 addition and 26 deletions.
27 changes: 1 addition & 26 deletions src/theme/SearchBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,30 +3,5 @@ import './searchBar.scss';
import CommandMenu from '../components/CommandMenu';

export default function SearchBarWrapper(props) {
const [open, setOpen] = useState(false);
const [isApple, setIsApple] = useState(true);

useEffect(() => {
if (navigator.appVersion.indexOf("Apple") != -1) {
setIsApple(true);
}
}, [])
return (
<>
<CommandMenu open={open} setOpen={setOpen} />
<div className='searchBox'>
<button className='searchButton' onClick={() => setOpen(true)} >
<span className='searchPlaceholder'>
<i className="searchIcon fas fa-magnifying-glass" />
<span className='searchPlaceholderText'>Search</span>
</span>
<div className='commandIconContainer'>
<span className='commandIcon'>
{isApple ? '⌘K' : 'Ctrl + K'}
</span>
</div>
</button>
</div>
</>
);
return null;
}

0 comments on commit e654151

Please sign in to comment.