Skip to content

Commit

Permalink
fix(text): pass className
Browse files Browse the repository at this point in the history
  • Loading branch information
mere1y committed Jul 9, 2023
1 parent 3d7008c commit 87148f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/shared/ui/text/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export interface TextProps extends ComponentProps {
}

export const Text = (props: TextProps) => {
const {Component, children, size = TextSize.M, center, ...otherProps} = props;
const {Component, children, className, size = TextSize.M, center, ...otherProps} = props;

const Wrapper = Component || 'p';

Expand All @@ -29,7 +29,7 @@ export const Text = (props: TextProps) => {
};

return (
<Wrapper className={classNames(cls.text, mods)} {...otherProps}>
<Wrapper className={classNames(cls.text, mods, className)} {...otherProps}>
{children}
</Wrapper>
);
Expand Down

0 comments on commit 87148f7

Please sign in to comment.