mirror of
https://github.com/StanGirard/quivr.git
synced 2024-09-11 13:15:41 +03:00
feat(BrainManagement): add new brain button
This commit is contained in:
parent
de1a5f242c
commit
2651c1bd0b
@ -2,6 +2,7 @@
|
|||||||
import { motion, MotionConfig } from "framer-motion";
|
import { motion, MotionConfig } from "framer-motion";
|
||||||
import { MdChevronRight } from "react-icons/md";
|
import { MdChevronRight } from "react-icons/md";
|
||||||
|
|
||||||
|
import { AddBrainModal } from "@/lib/components/AddBrainModal";
|
||||||
import { cn } from "@/lib/utils";
|
import { cn } from "@/lib/utils";
|
||||||
|
|
||||||
import { BrainListItem } from "./BrainListItem/BrainListItem";
|
import { BrainListItem } from "./BrainListItem/BrainListItem";
|
||||||
@ -51,6 +52,9 @@ export const BrainsList = (): JSX.Element => {
|
|||||||
<BrainListItem brain={brain} key={brain.id} />
|
<BrainListItem brain={brain} key={brain.id} />
|
||||||
))}
|
))}
|
||||||
</div>
|
</div>
|
||||||
|
<div className="m-2 mb flex flex-col">
|
||||||
|
<AddBrainModal />
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</motion.div>
|
</motion.div>
|
||||||
<button
|
<button
|
||||||
|
@ -6,8 +6,8 @@ import Field from "@/lib/components/ui/Field";
|
|||||||
import Popover from "@/lib/components/ui/Popover";
|
import Popover from "@/lib/components/ui/Popover";
|
||||||
import { useBrainContext } from "@/lib/context/BrainProvider/hooks/useBrainContext";
|
import { useBrainContext } from "@/lib/context/BrainProvider/hooks/useBrainContext";
|
||||||
|
|
||||||
import { AddBrainModal } from "./components/AddBrainModal";
|
|
||||||
import { BrainActions } from "./components/BrainActions/BrainActions";
|
import { BrainActions } from "./components/BrainActions/BrainActions";
|
||||||
|
import { AddBrainModal } from "../../../../../AddBrainModal";
|
||||||
|
|
||||||
export const BrainsDropDown = (): JSX.Element => {
|
export const BrainsDropDown = (): JSX.Element => {
|
||||||
const [searchQuery, setSearchQuery] = useState("");
|
const [searchQuery, setSearchQuery] = useState("");
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
export * from "./AddBrainModal";
|
export * from "../../../../../../AddBrainModal";
|
||||||
export * from "./BrainActions";
|
export * from "./BrainActions";
|
||||||
|
Loading…
Reference in New Issue
Block a user