Skip to content

Commit

Permalink
fix: modificato tag per titolo
Browse files Browse the repository at this point in the history
  • Loading branch information
Virtute90 committed Sep 13, 2024
1 parent fcc7ce3 commit 75af1ac
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Modal/ModalHeader.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import classNames from 'classnames';
import React, { FC, HTMLAttributes } from 'react';
import { CSSModule } from 'reactstrap/types/lib/utils';
import classNames from 'classnames';
import { Icon } from '../Icon/Icon';
import { mapToCssModules } from '../utils';

Expand All @@ -27,7 +27,7 @@ export const ModalHeader: FC<ModalHeaderProps> = ({
children,
Util,
toggle,
tag: Tag = 'h5',
tag: Tag = 'h2',
wrapTag: WrapTag = 'div',
closeAriaLabel = 'Close',
close,
Expand All @@ -52,7 +52,7 @@ export const ModalHeader: FC<ModalHeaderProps> = ({
return (
<WrapTag {...props} className={classes}>
{icon != null ? <Icon icon={icon} /> : null}
<Tag className={mapToCssModules('modal-title', cssModule)}>{children}</Tag>
<Tag className={mapToCssModules('modal-title h5', cssModule)}>{children}</Tag>
{close || CloseButton}
</WrapTag>
);
Expand Down

0 comments on commit 75af1ac

Please sign in to comment.