chore: Convert <Text /> component to span by default
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user