Skip to content

Commit af53774

Browse files
author
Hector Arce De Las Heras
committed
Improve text styles structure
1 parent e798e4c commit af53774

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/components/text/text.styled.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import styled, { css } from 'styled-components';
1+
import styled, { DefaultTheme, FlattenInterpolation, ThemeProps, css } from 'styled-components';
22

33
import { getTypographyStyles } from '@/utils/getStyles/getStyles';
44

@@ -37,7 +37,9 @@ const applyPropsTextStyles = (props: TextPropsStylesType) => css`
3737
`}
3838
`;
3939

40-
const applyVariantStyles = (textStyles?: TextThemeStylesType) => {
40+
export const applyVariantStyles = (
41+
textStyles?: TextThemeStylesType
42+
): FlattenInterpolation<ThemeProps<DefaultTheme>> => {
4143
return css`
4244
font-family: ${textStyles?.font_family};
4345
font-weight: ${textStyles?.font_weight};

0 commit comments

Comments
 (0)