Skip to content

Commit

Permalink
Bump prettier from 3.2.5 to 3.3.3 (#13753)
Browse files Browse the repository at this point in the history
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Pascal Birchler <[email protected]>
  • Loading branch information
dependabot[bot] and swissspidy authored Aug 27, 2024
1 parent 616c5c0 commit ecb5070
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 35 deletions.
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@
"postcss-jsx": "^0.36.4",
"postcss-styled-syntax": "^0.6.4",
"postcss-syntax": "^0.36.2",
"prettier": "^3.2.5",
"prettier": "^3.3.3",
"puppeteer": "^21.9.0",
"react-refresh": "^0.14.2",
"react-test-renderer": "^17.0.2",
Expand Down
12 changes: 4 additions & 8 deletions packages/dashboard/src/components/inlineInputForm/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,14 +60,10 @@ const InlineInputForm = ({
setNewValue(value);
}, [value]);

useFocusOut(
inputContainerRef,
() => {
// cancel changes when user focuses away from input
onEditCancel();
},
[onEditCancel]
);
useFocusOut(inputContainerRef, () => {
// cancel changes when user focuses away from input
onEditCancel();
}, [onEditCancel]);

useEffect(() => {
if (!noAutoFocus && inputContainerRef.current) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,13 +118,9 @@ export default function useVirtualizedGridNavigation({

useKeyDownEffect(containerRef, 'tab', onTabKeyDown, [onTabKeyDown]);

useFocusOut(
containerRef,
() => {
setIsGridFocused(false);
},
[]
);
useFocusOut(containerRef, () => {
setIsGridFocused(false);
}, []);

return useMemo(
() => ({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,13 +85,9 @@ function TextPane(props) {
({ actions }) => actions.generateDeferredCurrentPageCanvas
);

useResizeEffect(
paneRef,
() => {
forceUpdate(Date.now());
},
[]
);
useResizeEffect(paneRef, () => {
forceUpdate(Date.now());
}, []);

const handleToggleClick = useCallback(
() => setShouldUseSmartColor((currentValue) => !currentValue),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,14 +149,10 @@ function PublisherLogoSettings({
setFocusedPublisherLogoId(newMenuId);
}, []);

useFocusOut(
containerRef,
() => {
setFocusedPublisherLogoId(null);
setContextMenuId(null);
},
[]
);
useFocusOut(containerRef, () => {
setFocusedPublisherLogoId(null);
setContextMenuId(null);
}, []);

return (
<SettingForm>
Expand Down

0 comments on commit ecb5070

Please sign in to comment.