diff options
| author | Dhravya <[email protected]> | 2024-04-13 11:55:22 -0700 |
|---|---|---|
| committer | Dhravya <[email protected]> | 2024-04-13 11:55:22 -0700 |
| commit | 5a04bbe43742b50fa2332ca6c17ffc16c6ad5770 (patch) | |
| tree | c94444ab70852fb808cee25b27ba9503aeee05ee /apps/web/src | |
| parent | privacy page (diff) | |
| parent | fix phone layout (diff) | |
| download | supermemory-5a04bbe43742b50fa2332ca6c17ffc16c6ad5770.tar.xz supermemory-5a04bbe43742b50fa2332ca6c17ffc16c6ad5770.zip | |
Merge branch 'main' of https://github.com/Dhravya/supermemory
Diffstat (limited to 'apps/web/src')
| -rw-r--r-- | apps/web/src/components/Main.tsx | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/apps/web/src/components/Main.tsx b/apps/web/src/components/Main.tsx index 037d48a5..7438c7b2 100644 --- a/apps/web/src/components/Main.tsx +++ b/apps/web/src/components/Main.tsx @@ -263,6 +263,8 @@ export default function Main({ sidebarOpen }: { sidebarOpen: boolean }) { askQuestion={onSend} setValue={setValue} value={value} + selectedSpaces={selectedSpaces} + setSelectedSpaces={setSelectedSpaces} /> ) : ( <main @@ -342,6 +344,8 @@ export function Chat({ askQuestion, setValue, value, + selectedSpaces, + setSelectedSpaces }: { sidebarOpen: boolean; isLoading?: boolean; @@ -349,6 +353,8 @@ export function Chat({ askQuestion: () => void; setValue: (value: string) => void; value: string; + selectedSpaces: number[]; + setSelectedSpaces: React.Dispatch<React.SetStateAction<number[]>>; }) { const textArea = useRef<HTMLDivElement>(null); @@ -387,7 +393,7 @@ export function Chat({ data-sidebar-open={sidebarOpen} className="absolute flex w-full items-center justify-center" > - <div className="animate-from-top fixed bottom-10 mt-auto flex w-[50%] flex-col items-start justify-center gap-2"> + <div className="animate-from-top fixed bottom-10 left-1/2 -translate-x-1/2 mt-auto flex w-[90%] md:w-[50%] flex-col items-start justify-center gap-2"> <FilterSpaces name={"Filter"} onClose={() => { @@ -396,9 +402,8 @@ export function Chat({ side="top" align="start" className="bg-[#252525]" - // TODO: SPACES FILTER HERE - selectedSpaces={[]} - setSelectedSpaces={(spaces) => {}} + selectedSpaces={selectedSpaces} + setSelectedSpaces={setSelectedSpaces} /> <Textarea2 ref={textArea} |