Skip to content

Commit

Permalink
refactor: add className and data-cy
Browse files Browse the repository at this point in the history
  • Loading branch information
cesarhenrq committed Oct 5, 2023
1 parent f07d766 commit d11dced
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/components/Text/index.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
import * as S from './styles';

const Text = (props: TextProps) => {
return <S.Text {...props}>{props.label}</S.Text>;
return (
<S.Text {...props} className="text" data-cy="text">
{props.label}
</S.Text>
);
};

export default Text;

0 comments on commit d11dced

Please sign in to comment.