Skip to content

Change EmptyState to take render message in a divย #452

Closed
@presleyp

Description

@presleyp

As a developer, I want to avoid console log errors so I can see important logs easily and I know my components aren't doing anything dangerous.

EmptyState takes a message that gets rendered in a p, but the message sometimes contains a div, which creates an error if rendered inside a p.

Rather than try to restrict ourselves to p messages, I think we should just change EmptyState. This entails:

  • element change
  • maintaining the styles even though it won't be an h5 anymore
  • adding EmptyState to Storybook

Metadata

Metadata

Assignees

No one assigned

    Labels

    siteArea: frontend dashboard

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions