aboutsummaryrefslogtreecommitdiff
path: root/apps/web/src/components
diff options
context:
space:
mode:
authorDhravya <[email protected]>2024-04-10 09:51:56 -0700
committerDhravya <[email protected]>2024-04-10 09:51:56 -0700
commit75899ae5fdd709125161c681fd71a7b449f3aa3b (patch)
tree6005e95bf94ed0a32b130a3039700ffdee05bbdd /apps/web/src/components
parentMerge pull request #4 from Dhravya/new-ui (diff)
downloadsupermemory-75899ae5fdd709125161c681fd71a7b449f3aa3b.tar.xz
supermemory-75899ae5fdd709125161c681fd71a7b449f3aa3b.zip
cleanups for production
Diffstat (limited to 'apps/web/src/components')
-rw-r--r--apps/web/src/components/Main.tsx1
-rw-r--r--apps/web/src/components/Sidebar/index.tsx4
2 files changed, 4 insertions, 1 deletions
diff --git a/apps/web/src/components/Main.tsx b/apps/web/src/components/Main.tsx
index c621c68f..09703c2f 100644
--- a/apps/web/src/components/Main.tsx
+++ b/apps/web/src/components/Main.tsx
@@ -315,7 +315,6 @@ export default function Main({ sidebarOpen }: { sidebarOpen: boolean }) {
autoFocus: true,
onChange: (e) => setValue(e.target.value),
onKeyDown: (e) => {
- console.log(e.key, e.ctrlKey, e.metaKey);
if (e.key === "Enter" && (e.ctrlKey || e.metaKey)) {
onSend();
}
diff --git a/apps/web/src/components/Sidebar/index.tsx b/apps/web/src/components/Sidebar/index.tsx
index 830b0f05..db36f66b 100644
--- a/apps/web/src/components/Sidebar/index.tsx
+++ b/apps/web/src/components/Sidebar/index.tsx
@@ -7,6 +7,7 @@ import { AnimatePresence, motion } from 'framer-motion';
import { Bin } from '@/assets/Bin';
import { Avatar, AvatarFallback, AvatarImage } from '@radix-ui/react-avatar';
import { useSession } from 'next-auth/react';
+import MessagePoster from '@/app/MessagePoster';
export type MenuItem = {
icon: React.ReactNode | React.ReactNode[];
@@ -16,8 +17,10 @@ export type MenuItem = {
export default function Sidebar({
selectChange,
+ jwt
}: {
selectChange?: (selectedItem: string | null) => void;
+ jwt: string;
}) {
const { data: session } = useSession();
const menuItemsTop: Array<MenuItem> = [
@@ -117,6 +120,7 @@ export default function Sidebar({
selectedItem={selectedItem}
setSelectedItem={setSelectedItem}
/>
+ <MessagePoster jwt={jwt} />
</div>
<AnimatePresence>
{selectedItem && <SubSidebar>{Subbar}</SubSidebar>}