Skip to content

Commit

Permalink
Avoid TypeScript issue
Browse files Browse the repository at this point in the history
  • Loading branch information
tujoworker committed Apr 12, 2023
1 parent 6c02172 commit eb45f2e
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -201,14 +201,15 @@ export const SkeletonInfoCustom = () => (
skeletonDOMAttributes(params, skeleton, context)

// Handle CSS classes – use either "shape" or "font"
params.className = createSkeletonClass('font', skeleton, context)
const className = createSkeletonClass('font', skeleton, context)

return (
<div id="my-component" {...params}>
<div {...params} id="my-component" className={className}>
Hello World
</div>
)
}

return <Component />
}}
</ComponentBox>
Expand Down

0 comments on commit eb45f2e

Please sign in to comment.