forked from M3-Academy/desafio-react-e-typescript
fix: corrige problema de texto
This commit is contained in:
parent
daf98b26a1
commit
de0d9b44df
@ -7,7 +7,10 @@ interface SubjectTextProps {
|
||||
const SubjectText = ({title}: SubjectTextProps) => {
|
||||
|
||||
return (
|
||||
<article className={styles["page-subject__container"]}>
|
||||
<article
|
||||
className={styles["page-subject__container"]}
|
||||
data-testid="texts__container"
|
||||
>
|
||||
<Title title={title} />
|
||||
<Text
|
||||
text="Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod
|
||||
@ -46,7 +49,10 @@ export type TitleProps = {
|
||||
|
||||
export const Title = ({title}: TitleProps) => {
|
||||
return (
|
||||
<h2 className={styles["texts__title"]}>
|
||||
<h2
|
||||
className={styles["texts__title"]}
|
||||
data-testid="texts__title"
|
||||
>
|
||||
{title}
|
||||
</h2>
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user