chore: Convert <Text /> component to span by default

This commit is contained in:
Tom Moor
2024-01-30 22:49:31 -05:00
parent a960d8cee5
commit 5ce8827a8c
56 changed files with 93 additions and 97 deletions

View File

@@ -245,9 +245,9 @@ function Input(
</label>
{error && (
<TextWrapper>
<StyledText type="danger" size="xsmall">
<Text type="danger" size="xsmall">
{error}
</StyledText>
</Text>
</TextWrapper>
)}
</Wrapper>
@@ -260,8 +260,4 @@ export const TextWrapper = styled.span`
margin-top: -16px;
`;
export const StyledText = styled(Text)`
margin-bottom: 0;
`;
export default React.forwardRef(Input);