Skip to content

Commit

Permalink
fixup! Feat(web-react): Introduced Skeleton component #DS-1625
Browse files Browse the repository at this point in the history
  • Loading branch information
Řehořková Kateřina committed Feb 4, 2025
1 parent 0ad097e commit 7a868aa
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const defaultProps: Partial<SpiritSkeletonProps> = {
lines: 1,
elementType: 'div',
};
const SkeletonText = <T extends ElementType = 'div', E = void>(props: SpiritSkeletonProps<T, E>): ReactElement => {
const SkeletonHeading = <T extends ElementType = 'div', E = void>(props: SpiritSkeletonProps<T, E>): ReactElement => {
const propsWithDefaults = { ...defaultProps, ...props };
const { elementType: ElementTag = defaultProps.elementType as ElementType, lines, ...restProps } = propsWithDefaults;
const { classProps, props: modifiedProps } = useSkeletonStyleProps(restProps);
Expand All @@ -34,4 +34,4 @@ const SkeletonText = <T extends ElementType = 'div', E = void>(props: SpiritSkel
);
};

export default SkeletonText;
export default SkeletonHeading;

0 comments on commit 7a868aa

Please sign in to comment.