forked from sombochea/verdaccio-ui
fix: typography Component - Introduced ForwardRef (#179)
* refactor: introduced forwardref * refacttor: updated ref's * fix: fixed func's name * fix: fixed snapshots * fix: updated snap
This commit is contained in:
committed by
Juan Picado @jotadeveloper
parent
82d7107de7
commit
a8deeb9b9d
@@ -4,68 +4,73 @@ exports[`test Developers should render the component for contributors with items
|
||||
<Developers
|
||||
type="contributors"
|
||||
>
|
||||
<Styled(WithStyles(ForwardRef(Typography)))
|
||||
<Styled(Component)
|
||||
variant="subtitle1"
|
||||
>
|
||||
<WithStyles(ForwardRef(Typography))
|
||||
className="css-18tsvng emotion-0"
|
||||
<ForwardRef(Text)
|
||||
className="css-48zeoi emotion-0"
|
||||
variant="subtitle1"
|
||||
>
|
||||
<ForwardRef(Typography)
|
||||
className="css-18tsvng emotion-0"
|
||||
classes={
|
||||
Object {
|
||||
"alignCenter": "MuiTypography-alignCenter",
|
||||
"alignJustify": "MuiTypography-alignJustify",
|
||||
"alignLeft": "MuiTypography-alignLeft",
|
||||
"alignRight": "MuiTypography-alignRight",
|
||||
"body1": "MuiTypography-body1",
|
||||
"body2": "MuiTypography-body2",
|
||||
"button": "MuiTypography-button",
|
||||
"caption": "MuiTypography-caption",
|
||||
"colorError": "MuiTypography-colorError",
|
||||
"colorInherit": "MuiTypography-colorInherit",
|
||||
"colorPrimary": "MuiTypography-colorPrimary",
|
||||
"colorSecondary": "MuiTypography-colorSecondary",
|
||||
"colorTextPrimary": "MuiTypography-colorTextPrimary",
|
||||
"colorTextSecondary": "MuiTypography-colorTextSecondary",
|
||||
"displayBlock": "MuiTypography-displayBlock",
|
||||
"displayInline": "MuiTypography-displayInline",
|
||||
"gutterBottom": "MuiTypography-gutterBottom",
|
||||
"h1": "MuiTypography-h1",
|
||||
"h2": "MuiTypography-h2",
|
||||
"h3": "MuiTypography-h3",
|
||||
"h4": "MuiTypography-h4",
|
||||
"h5": "MuiTypography-h5",
|
||||
"h6": "MuiTypography-h6",
|
||||
"noWrap": "MuiTypography-noWrap",
|
||||
"overline": "MuiTypography-overline",
|
||||
"paragraph": "MuiTypography-paragraph",
|
||||
"root": "MuiTypography-root",
|
||||
"srOnly": "MuiTypography-srOnly",
|
||||
"subtitle1": "MuiTypography-subtitle1",
|
||||
"subtitle2": "MuiTypography-subtitle2",
|
||||
}
|
||||
}
|
||||
<WithStyles(ForwardRef(Typography))
|
||||
className="css-48zeoi emotion-0"
|
||||
variant="subtitle1"
|
||||
>
|
||||
<h6
|
||||
className="MuiTypography-root css-18tsvng emotion-0 MuiTypography-subtitle1"
|
||||
<ForwardRef(Typography)
|
||||
className="css-48zeoi emotion-0"
|
||||
classes={
|
||||
Object {
|
||||
"alignCenter": "MuiTypography-alignCenter",
|
||||
"alignJustify": "MuiTypography-alignJustify",
|
||||
"alignLeft": "MuiTypography-alignLeft",
|
||||
"alignRight": "MuiTypography-alignRight",
|
||||
"body1": "MuiTypography-body1",
|
||||
"body2": "MuiTypography-body2",
|
||||
"button": "MuiTypography-button",
|
||||
"caption": "MuiTypography-caption",
|
||||
"colorError": "MuiTypography-colorError",
|
||||
"colorInherit": "MuiTypography-colorInherit",
|
||||
"colorPrimary": "MuiTypography-colorPrimary",
|
||||
"colorSecondary": "MuiTypography-colorSecondary",
|
||||
"colorTextPrimary": "MuiTypography-colorTextPrimary",
|
||||
"colorTextSecondary": "MuiTypography-colorTextSecondary",
|
||||
"displayBlock": "MuiTypography-displayBlock",
|
||||
"displayInline": "MuiTypography-displayInline",
|
||||
"gutterBottom": "MuiTypography-gutterBottom",
|
||||
"h1": "MuiTypography-h1",
|
||||
"h2": "MuiTypography-h2",
|
||||
"h3": "MuiTypography-h3",
|
||||
"h4": "MuiTypography-h4",
|
||||
"h5": "MuiTypography-h5",
|
||||
"h6": "MuiTypography-h6",
|
||||
"noWrap": "MuiTypography-noWrap",
|
||||
"overline": "MuiTypography-overline",
|
||||
"paragraph": "MuiTypography-paragraph",
|
||||
"root": "MuiTypography-root",
|
||||
"srOnly": "MuiTypography-srOnly",
|
||||
"subtitle1": "MuiTypography-subtitle1",
|
||||
"subtitle2": "MuiTypography-subtitle2",
|
||||
}
|
||||
}
|
||||
variant="subtitle1"
|
||||
>
|
||||
contributors
|
||||
</h6>
|
||||
</ForwardRef(Typography)>
|
||||
</WithStyles(ForwardRef(Typography))>
|
||||
</Styled(WithStyles(ForwardRef(Typography)))>
|
||||
<h6
|
||||
className="MuiTypography-root css-48zeoi emotion-0 MuiTypography-subtitle1"
|
||||
>
|
||||
contributors
|
||||
</h6>
|
||||
</ForwardRef(Typography)>
|
||||
</WithStyles(ForwardRef(Typography))>
|
||||
</ForwardRef(Text)>
|
||||
</Styled(Component)>
|
||||
<Styled(div)>
|
||||
<div
|
||||
className="css-mkcn9c emotion-5"
|
||||
className="css-mkcn9c emotion-6"
|
||||
>
|
||||
<Styled(span)
|
||||
key="dave.methvin@gmail.com"
|
||||
>
|
||||
<span
|
||||
className="css-dvxtzn emotion-3"
|
||||
className="css-dvxtzn emotion-4"
|
||||
>
|
||||
<AvatarTooltip
|
||||
email="dave.methvin@gmail.com"
|
||||
@@ -161,7 +166,7 @@ exports[`test Developers should render the component for contributors with items
|
||||
key="m.goleb@gmail.com"
|
||||
>
|
||||
<span
|
||||
className="css-dvxtzn emotion-3"
|
||||
className="css-dvxtzn emotion-4"
|
||||
>
|
||||
<AvatarTooltip
|
||||
email="m.goleb@gmail.com"
|
||||
@@ -262,68 +267,73 @@ exports[`test Developers should render the component for maintainers with items
|
||||
<Developers
|
||||
type="maintainers"
|
||||
>
|
||||
<Styled(WithStyles(ForwardRef(Typography)))
|
||||
<Styled(Component)
|
||||
variant="subtitle1"
|
||||
>
|
||||
<WithStyles(ForwardRef(Typography))
|
||||
className="css-18tsvng emotion-0"
|
||||
<ForwardRef(Text)
|
||||
className="css-48zeoi emotion-0"
|
||||
variant="subtitle1"
|
||||
>
|
||||
<ForwardRef(Typography)
|
||||
className="css-18tsvng emotion-0"
|
||||
classes={
|
||||
Object {
|
||||
"alignCenter": "MuiTypography-alignCenter",
|
||||
"alignJustify": "MuiTypography-alignJustify",
|
||||
"alignLeft": "MuiTypography-alignLeft",
|
||||
"alignRight": "MuiTypography-alignRight",
|
||||
"body1": "MuiTypography-body1",
|
||||
"body2": "MuiTypography-body2",
|
||||
"button": "MuiTypography-button",
|
||||
"caption": "MuiTypography-caption",
|
||||
"colorError": "MuiTypography-colorError",
|
||||
"colorInherit": "MuiTypography-colorInherit",
|
||||
"colorPrimary": "MuiTypography-colorPrimary",
|
||||
"colorSecondary": "MuiTypography-colorSecondary",
|
||||
"colorTextPrimary": "MuiTypography-colorTextPrimary",
|
||||
"colorTextSecondary": "MuiTypography-colorTextSecondary",
|
||||
"displayBlock": "MuiTypography-displayBlock",
|
||||
"displayInline": "MuiTypography-displayInline",
|
||||
"gutterBottom": "MuiTypography-gutterBottom",
|
||||
"h1": "MuiTypography-h1",
|
||||
"h2": "MuiTypography-h2",
|
||||
"h3": "MuiTypography-h3",
|
||||
"h4": "MuiTypography-h4",
|
||||
"h5": "MuiTypography-h5",
|
||||
"h6": "MuiTypography-h6",
|
||||
"noWrap": "MuiTypography-noWrap",
|
||||
"overline": "MuiTypography-overline",
|
||||
"paragraph": "MuiTypography-paragraph",
|
||||
"root": "MuiTypography-root",
|
||||
"srOnly": "MuiTypography-srOnly",
|
||||
"subtitle1": "MuiTypography-subtitle1",
|
||||
"subtitle2": "MuiTypography-subtitle2",
|
||||
}
|
||||
}
|
||||
<WithStyles(ForwardRef(Typography))
|
||||
className="css-48zeoi emotion-0"
|
||||
variant="subtitle1"
|
||||
>
|
||||
<h6
|
||||
className="MuiTypography-root css-18tsvng emotion-0 MuiTypography-subtitle1"
|
||||
<ForwardRef(Typography)
|
||||
className="css-48zeoi emotion-0"
|
||||
classes={
|
||||
Object {
|
||||
"alignCenter": "MuiTypography-alignCenter",
|
||||
"alignJustify": "MuiTypography-alignJustify",
|
||||
"alignLeft": "MuiTypography-alignLeft",
|
||||
"alignRight": "MuiTypography-alignRight",
|
||||
"body1": "MuiTypography-body1",
|
||||
"body2": "MuiTypography-body2",
|
||||
"button": "MuiTypography-button",
|
||||
"caption": "MuiTypography-caption",
|
||||
"colorError": "MuiTypography-colorError",
|
||||
"colorInherit": "MuiTypography-colorInherit",
|
||||
"colorPrimary": "MuiTypography-colorPrimary",
|
||||
"colorSecondary": "MuiTypography-colorSecondary",
|
||||
"colorTextPrimary": "MuiTypography-colorTextPrimary",
|
||||
"colorTextSecondary": "MuiTypography-colorTextSecondary",
|
||||
"displayBlock": "MuiTypography-displayBlock",
|
||||
"displayInline": "MuiTypography-displayInline",
|
||||
"gutterBottom": "MuiTypography-gutterBottom",
|
||||
"h1": "MuiTypography-h1",
|
||||
"h2": "MuiTypography-h2",
|
||||
"h3": "MuiTypography-h3",
|
||||
"h4": "MuiTypography-h4",
|
||||
"h5": "MuiTypography-h5",
|
||||
"h6": "MuiTypography-h6",
|
||||
"noWrap": "MuiTypography-noWrap",
|
||||
"overline": "MuiTypography-overline",
|
||||
"paragraph": "MuiTypography-paragraph",
|
||||
"root": "MuiTypography-root",
|
||||
"srOnly": "MuiTypography-srOnly",
|
||||
"subtitle1": "MuiTypography-subtitle1",
|
||||
"subtitle2": "MuiTypography-subtitle2",
|
||||
}
|
||||
}
|
||||
variant="subtitle1"
|
||||
>
|
||||
maintainers
|
||||
</h6>
|
||||
</ForwardRef(Typography)>
|
||||
</WithStyles(ForwardRef(Typography))>
|
||||
</Styled(WithStyles(ForwardRef(Typography)))>
|
||||
<h6
|
||||
className="MuiTypography-root css-48zeoi emotion-0 MuiTypography-subtitle1"
|
||||
>
|
||||
maintainers
|
||||
</h6>
|
||||
</ForwardRef(Typography)>
|
||||
</WithStyles(ForwardRef(Typography))>
|
||||
</ForwardRef(Text)>
|
||||
</Styled(Component)>
|
||||
<Styled(div)>
|
||||
<div
|
||||
className="css-mkcn9c emotion-5"
|
||||
className="css-mkcn9c emotion-6"
|
||||
>
|
||||
<Styled(span)
|
||||
key="dave.methvin@gmail.com"
|
||||
>
|
||||
<span
|
||||
className="css-dvxtzn emotion-3"
|
||||
className="css-dvxtzn emotion-4"
|
||||
>
|
||||
<AvatarTooltip
|
||||
email="dave.methvin@gmail.com"
|
||||
@@ -419,7 +429,7 @@ exports[`test Developers should render the component for maintainers with items
|
||||
key="m.goleb@gmail.com"
|
||||
>
|
||||
<span
|
||||
className="css-dvxtzn emotion-3"
|
||||
className="css-dvxtzn emotion-4"
|
||||
>
|
||||
<AvatarTooltip
|
||||
email="m.goleb@gmail.com"
|
||||
|
||||
Reference in New Issue
Block a user