Skip to content

Commit 9dfc87d

Browse files
Merge pull request #1082 from NordicSemiconductor/fix/typo
Fix/typo
2 parents 7f04fa3 + 9e502ee commit 9dfc87d

File tree

3 files changed

+19
-7
lines changed

3 files changed

+19
-7
lines changed

Changelog.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,18 @@ This project does _not_ adhere to
77
[Semantic Versioning](https://semver.org/spec/v2.0.0.html) but contrary to it
88
every new version is a new major version.
99

10+
## 238.0.0 - 2025-11-12
11+
12+
### Fixed
13+
14+
- A typo in `Group` props.
15+
16+
### Steps to upgrade when using this package
17+
18+
- Rename prop `collapseStatePersistanceId` to `collapseStatePersistenceId`
19+
everywhere it is used. Running the type check will highlight remaining
20+
occurrences. No data migration is needed; only the prop name changed.
21+
1022
## 237.0.0 - 2025-11-12
1123

1224
### Changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@nordicsemiconductor/pc-nrfconnect-shared",
3-
"version": "237.0.0",
3+
"version": "238.0.0",
44
"description": "Shared commodities for developing pc-nrfconnect-* packages",
55
"repository": {
66
"type": "git",

src/Group/Group.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ export const Group = ({
8585
collapsible = false,
8686
defaultCollapsed = !!collapsible,
8787
onToggled,
88-
collapseStatePersistanceId,
88+
collapseStatePersistenceId,
8989
}: {
9090
className?: string;
9191
heading: React.ReactNode;
@@ -97,12 +97,12 @@ export const Group = ({
9797
defaultCollapsed?: boolean;
9898
onToggled?: (isNowExpanded: boolean) => void;
9999
/** Unique identifier for persisting the group's collapse state across sessions. When provided, enables state persistence. */
100-
collapseStatePersistanceId?: string;
100+
collapseStatePersistenceId?: string;
101101
}) => {
102102
const getInitialCollapseState = () => {
103-
if (collapseStatePersistanceId) {
103+
if (collapseStatePersistenceId) {
104104
const persistedState = getPersistedGroupCollapseState(
105-
collapseStatePersistanceId,
105+
collapseStatePersistenceId,
106106
);
107107
if (persistedState !== undefined) {
108108
return persistedState;
@@ -146,9 +146,9 @@ export const Group = ({
146146
onToggled?.(collapsed);
147147
setCollapsed(!collapsed);
148148

149-
if (collapseStatePersistanceId) {
149+
if (collapseStatePersistenceId) {
150150
persistGroupCollapseState(
151-
collapseStatePersistanceId,
151+
collapseStatePersistenceId,
152152
!collapsed,
153153
);
154154
}

0 commit comments

Comments
 (0)