Skip to content

a typo in the codebase! In packages/ra-ui-materialui/src/layout/Error.tsx #10651

Closed
@saloua-ch

Description

@saloua-ch

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:

  1. Open packages/ra-ui-materialui/src/layout/Error.tsx
  2. Look for the class name panelSumary
  3. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions