Skip to content

Commit 9212cbb

Browse files
committed
Fix more lints
1 parent 89a7d15 commit 9212cbb

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

root/static/scripts/area/components/AreaEditForm.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,9 +208,9 @@ component AreaEditForm(
208208
dispatch({type: 'set-type', type_id: event.currentTarget.value});
209209
}, [dispatch]);
210210

211-
function handleTypeFocus() {
211+
const handleTypeFocus = React.useCallback(() => {
212212
dispatch({type: 'toggle-type-bubble'});
213-
}
213+
}, [dispatch]);
214214

215215
const handleIso3166Update = React.useCallback(
216216
(variant: Iso3166Variant) => (action: Iso3166ActionT) => {

root/static/scripts/common/components/TypeBubble.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
*/
99

1010
import expand2react from '../i18n/expand2react.js';
11+
1112
import Bubble from './Bubble.js';
1213

1314
component TypeBubble(

0 commit comments

Comments
 (0)