Skip to content

Commit 4d44273

Browse files
author
Hector Arce De Las Heras
committed
Fix typescript errors
1 parent b369ecf commit 4d44273

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

src/components/text/text.styled.tsx

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

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

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

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

src/constants/stylesName.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,4 +104,5 @@ export const STYLES_NAME = {
104104
VIDEO: 'VIDEO_STYLES',
105105
DROPDOWN_SELECTED: 'DROPDOWN_SELECTED_STYLES',
106106
TAG_V2: 'TAG_STYLES_V2',
107+
INPUT_SIGNATURE: 'INPUT_SIGNATURE_STYLES',
107108
};

0 commit comments

Comments
 (0)