Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
arvinxx committed Nov 26, 2024
1 parent 91d61f5 commit 34225e0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
<Modal
allowFullscreen
height={'95%'}
onCancel={() => setOpen(false)}
open={open}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ const Actions = memo<ActionsProps>(({ id, inPortalThread }) => {

const RenderFunction = renderActions[(item?.role || '') as MessageRoleType] ?? ActionsBar;

return <RenderFunction {...item!} inThread={inPortalThread} onActionClick={handleActionClick} />;
return <RenderFunction {...item!} onActionClick={handleActionClick} />;
});

export default Actions;

0 comments on commit 34225e0

Please sign in to comment.