Skip to content

Commit 21f279d

Browse files
committed
handleChange -> onExtendedButtonClick
1 parent 2bc67d8 commit 21f279d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Accordion.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ export const Accordion = memo(
6161

6262
const value = expandedProp ? expandedProp : expandedState;
6363

64-
const handleChange = useConstCallback(
64+
const onExtendButtonClick = useConstCallback(
6565
(event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => {
6666
setExpandedState(!value);
6767
if (onExpandedChange) {
@@ -77,7 +77,7 @@ export const Accordion = memo(
7777
className={fr.cx("fr-accordion__btn")}
7878
aria-expanded={value}
7979
aria-controls={`accordion-${id}`}
80-
onClick={handleChange}
80+
onClick={onExtendButtonClick}
8181
>
8282
{label}
8383
</button>

0 commit comments

Comments
 (0)