From b350ae00ca72ec2dfe23888f02fb2b068c165f82 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daphn=C3=A9=20Popin?= Date: Thu, 28 Nov 2024 16:06:16 +0100 Subject: [PATCH] Ext: latest polish --- extension/app/src/components/auth/ProtectedRoute.tsx | 2 +- .../src/components/conversation/AttachFragment.tsx | 6 +++--- .../components/conversation/ConversationContainer.tsx | 2 +- extension/app/src/pages/MainPage.tsx | 11 ----------- extension/package-lock.json | 8 ++++---- extension/package.json | 2 +- 6 files changed, 10 insertions(+), 21 deletions(-) diff --git a/extension/app/src/components/auth/ProtectedRoute.tsx b/extension/app/src/components/auth/ProtectedRoute.tsx index f2101faae5b4..6001f3de5473 100644 --- a/extension/app/src/components/auth/ProtectedRoute.tsx +++ b/extension/app/src/components/auth/ProtectedRoute.tsx @@ -108,7 +108,7 @@ export const ProtectedRoute = ({ children }: ProtectedRouteProps) => { } return ( -
+
{typeof children === "function" ? children({ user, workspace, handleLogout }) : children} diff --git a/extension/app/src/components/conversation/AttachFragment.tsx b/extension/app/src/components/conversation/AttachFragment.tsx index 5974f05ae66a..7266283bb841 100644 --- a/extension/app/src/components/conversation/AttachFragment.tsx +++ b/extension/app/src/components/conversation/AttachFragment.tsx @@ -1,4 +1,4 @@ -import { Button, DocumentPlusIcon, ImageIcon } from "@dust-tt/sparkle"; +import { Button, CameraIcon, DocumentPlusIcon } from "@dust-tt/sparkle"; import { InputBarContext } from "@extension/components/input_bar/InputBarContext"; import type { FileUploaderService } from "@extension/hooks/useFileUploaderService"; import { useContext, useEffect } from "react"; @@ -45,7 +45,7 @@ export const AttachFragment = ({