Skip to content

Commit

Permalink
fixup! Feat(web-react): Add prefixed utility class #DS-1618
Browse files Browse the repository at this point in the history
  • Loading branch information
curdaj committed Jan 13, 2025
1 parent dd814b8 commit 2f38236
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export interface TruncateStyles<T extends ElementType> {
styleProps: TruncateCSSProperties;
}

export function useTruncateStyleProps<T extends ElementType>(props: SpiritTruncateProps<T>): TruncateStyles<T> {
export const useTruncateStyleProps = <T extends ElementType>(props: SpiritTruncateProps<T>): TruncateStyles<T> => {
const { lines, ...restProps } = props;

const TruncateMultilinesClass = useClassNamePrefix('text-truncate-multiline');
Expand All @@ -26,4 +26,4 @@ export function useTruncateStyleProps<T extends ElementType>(props: SpiritTrunca
props: restProps,
styleProps: truncateStyle,
};
}
};

0 comments on commit 2f38236

Please sign in to comment.