Skip to content

Commit

Permalink
add ActionMenu component that holds sort, filter, and list view icons
Browse files Browse the repository at this point in the history
  • Loading branch information
ka-lange committed Sep 15, 2023
1 parent f46e0b9 commit fc0db18
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
14 changes: 14 additions & 0 deletions client/components/ui/ActionMenu.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import Link from 'next/link'
import { FunnelIcon, ArrowsUpDownIcon, ListBulletIcon } from '@heroicons/react/20/solid'

const ActionMenu = () => {
return (
<section className="flex">
<ArrowsUpDownIcon className="action-icon" title="Sort By" />
<FunnelIcon className="action-icon" title="Filter By" />
<ListBulletIcon className="action-icon" title="List View" />
</section>
)
}

export default ActionMenu
4 changes: 4 additions & 0 deletions client/styles/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -79,4 +79,8 @@ input:not([type="checkbox"]) {

.navbar {
@apply flex justify-between p-4;
}

.action-icon{
@apply w-7 h-7 mx-1 cursor-pointer;
}

0 comments on commit fc0db18

Please sign in to comment.