Skip to content

Commit 58576c8

Browse files
author
Welly Shen
committed
Improve readability
1 parent c5c9ad7 commit 58576c8

File tree

1 file changed

+3
-3
lines changed
  • packages/agents-manager/src/components/zoom-action-button

1 file changed

+3
-3
lines changed

packages/agents-manager/src/components/zoom-action-button/index.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,19 @@ import { unlock } from '../../utils/unlock-private-apis';
88
import './style.scss';
99

1010
export default function ZoomActionButton() {
11-
const isZoomed = useSelect( ( select ) => unlock( select( blockEditorStore ) ).isZoomOut(), [] );
11+
const isZoomOut = useSelect( ( select ) => unlock( select( blockEditorStore ) ).isZoomOut(), [] );
1212

1313
return (
1414
<Button
1515
className="agents-manager-zoom-action-button"
1616
icon={ zoomIcon }
1717
label={
18-
isZoomed
18+
isZoomOut
1919
? __( 'Zoom in', '__i18n_text_domain__' )
2020
: __( 'Zoom out', '__i18n_text_domain__' )
2121
}
2222
onClick={ toggleZoom }
23-
isPressed={ isZoomed }
23+
isPressed={ isZoomOut }
2424
size="compact"
2525
/>
2626
);

0 commit comments

Comments
 (0)