refactor: temporarily disable the proofreading feature for a hotfix release ahead of a major refactor (#2742)

This commit is contained in:
Huang Xin
2025-12-19 10:45:42 +08:00
committed by GitHub
parent 8a43c58fd4
commit 8a4e22e423
5 changed files with 25 additions and 21 deletions
@@ -15,6 +15,7 @@ interface AnnotationPopupProps {
Icon: React.ElementType;
onClick: () => void;
disabled?: boolean;
visible?: boolean;
}>;
position: Position;
trianglePosition: Position;
@@ -65,16 +66,19 @@ const AnnotationPopup: React.FC<AnnotationPopupProps> = ({
)}
style={{ scrollbarWidth: 'none', msOverflowStyle: 'none' }}
>
{buttons.map((button, index) => (
<PopupButton
key={index}
showTooltip={!highlightOptionsVisible}
tooltipText={button.tooltipText}
Icon={button.Icon}
onClick={button.onClick}
disabled={button.disabled}
/>
))}
{buttons.map((button, index) => {
if (button.visible === false) return null;
return (
<PopupButton
key={index}
showTooltip={!highlightOptionsVisible}
tooltipText={button.tooltipText}
Icon={button.Icon}
onClick={button.onClick}
disabled={button.disabled}
/>
);
})}
</div>
</Popup>
{highlightOptionsVisible && (