Skip to content

Commit 83de791

Browse files
committed
feat(editor): add new PostEditor component and E2E test infrastructure
- Add PostEditor with WriteTab and LinkTab for article/link creation - Add URL metadata fetching for link posts - Add article toolbar with formatting options - Add E2E editor tests and test utilities - Update E2E setup with link post test data - Update slash command and image upload extensions
1 parent 08775f8 commit 83de791

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

components/editor/editor/extensions/slash-command.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* eslint-disable @typescript-eslint/no-explicit-any */
1+
22
import React, {
33
useState,
44
useEffect,
@@ -231,11 +231,11 @@ const CommandList = ({
231231
range: any;
232232
}) => {
233233
// Use items.length as key to reset selectedIndex when items change
234-
// eslint-disable-next-line react-hooks/exhaustive-deps
234+
235235
const [selectedIndex, setSelectedIndex] = useState(0);
236236

237237
// Reset selection when items change - using useLayoutEffect to run synchronously
238-
// eslint-disable-next-line react-hooks/set-state-in-effect
238+
239239
useLayoutEffect(() => {
240240
setSelectedIndex(0);
241241
}, [items]);

0 commit comments

Comments
 (0)