feat: add search modal mobile

This commit is contained in:
Sonny
2023-06-08 23:07:22 +02:00
parent 0e544c2ea6
commit b2a6b3605b
7 changed files with 40 additions and 6 deletions

View File

@@ -9,6 +9,7 @@ import LinkItem from "./LinkItem";
import ButtonLink from "components/ButtonLink";
import CreateItem from "components/QuickActions/CreateItem";
import QuickActionSearch from "components/QuickActions/Search";
import { RxHamburgerMenu } from "react-icons/rx";
import styles from "./links.module.scss";
@@ -17,11 +18,13 @@ export default function Links({
toggleFavorite,
isMobile,
openMobileModal,
openSearchModal,
}: {
category: Category;
toggleFavorite: (linkId: Link["id"]) => void;
isMobile: boolean;
openMobileModal: () => void;
openSearchModal: () => void;
}) {
if (category === null) {
return (
@@ -56,6 +59,7 @@ export default function Links({
)}
</span>
<span className={styles["category-controls"]}>
<QuickActionSearch openSearchModal={openSearchModal} />
<CreateItem type="link" categoryId={category.id} />
<EditItem type="category" id={id} />
<RemoveItem type="category" id={id} />