Closed
Description
What you were expecting:
The Error component's class names should be consistently spelled, with "panelSummary" being the correct spelling.
What happened instead:
The Error component in packages/ra-ui-materialui/src/layout/Error.tsx
has a typo in the class name panelSumary
(missing 'm'). This inconsistency appears in multiple places:
- Line 64:
className={ErrorClasses.panelSumary}
- Line 148:
panelSumary: ${PREFIX}-panelSumary
- Line 184:
[`& .${ErrorClasses.panelSumary}`]
Steps to reproduce:
- Open
packages/ra-ui-materialui/src/layout/Error.tsx
- Look for the class name
panelSumary
- Notice the misspelling (missing 'm')
Related code:
// Current incorrect spelling
className={ErrorClasses.panelSumary}
panelSumary: `${PREFIX}-panelSumary`
[`& .${ErrorClasses.panelSumary}`]
// Should be
className={ErrorClasses.panelSummary}
panelSummary: `${PREFIX}-panelSummary`
[`& .${ErrorClasses.panelSummary}`]
Other information:
- This is a simple typo fix that doesn't affect functionality
- The correct spelling "panelSummary" is more consistent with Material-UI's naming conventions
- This fix will improve code consistency and maintainability
Environment
- React-admin version: [current version]
- React version: [current version]
- Browser: Any