diff --git a/src/app/(main)/chat/(workspace)/_layout/Mobile/PortalModal.tsx b/src/app/(main)/chat/(workspace)/_layout/Mobile/PortalModal.tsx index 0fcf1935b755..50be081fd898 100644 --- a/src/app/(main)/chat/(workspace)/_layout/Mobile/PortalModal.tsx +++ b/src/app/(main)/chat/(workspace)/_layout/Mobile/PortalModal.tsx @@ -10,15 +10,16 @@ import { systemStatusSelectors } from '@/store/global/selectors'; import { useWorkspaceModal } from '../../features/useWorkspaceModal'; const PortalModal = memo(({ children }: PropsWithChildren) => { - const [showAgentSettings, toggleConfig] = useGlobalStore((s) => [ + const [showMobilePortal, toggleMobilePortal] = useGlobalStore((s) => [ systemStatusSelectors.mobileShowPortal(s), s.toggleMobilePortal, ]); - const [open, setOpen] = useWorkspaceModal(showAgentSettings, toggleConfig); + const [open, setOpen] = useWorkspaceModal(showMobilePortal, toggleMobilePortal); const { t } = useTranslation('portal'); return ( setOpen(false)} open={open} diff --git a/src/features/Conversation/components/ChatItem/ActionsBar.tsx b/src/features/Conversation/components/ChatItem/ActionsBar.tsx index dce3d3cac29d..d8f83542639d 100644 --- a/src/features/Conversation/components/ChatItem/ActionsBar.tsx +++ b/src/features/Conversation/components/ChatItem/ActionsBar.tsx @@ -122,7 +122,7 @@ const Actions = memo(({ id, inPortalThread }) => { const RenderFunction = renderActions[(item?.role || '') as MessageRoleType] ?? ActionsBar; - return ; + return ; }); export default Actions;