Skip to content

Commit

Permalink
fixed the error Warning: Invalid attribute name: when using Heading … (
Browse files Browse the repository at this point in the history
  • Loading branch information
Sameer2748 authored Nov 3, 2024
1 parent 9e1c69f commit 14c3e7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/ui/Heading/Heading.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const RENDER_AS_ENUMS = [
}
];

const Heading = ({ children, as = undefined, customRootClass = '', className = '' }, ...props) => {
const Heading = ({ children, as = undefined, customRootClass = '', className = '' , ...props}) => {
const rootClass = customClassSwitcher(customRootClass, as || 'h1');

if (as !== undefined && RENDER_AS_ENUMS.find((item) => item.tag === as)) {
Expand Down

0 comments on commit 14c3e7e

Please sign in to comment.