Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(components): update snapshot due to css-in-js id change #573

Merged
merged 1 commit into from
Jul 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion components/Hyperlinks.js
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ function Hyperlinks({ hyperlinks, pollingType, pollingId, rel }) {
if (hyperlinks && hyperlinks.length === 0) return null;

let className = `${classes.root}`;
if (hyperlinks.length > 1) {
if (hyperlinks && hyperlinks.length > 1) {
className += ` ${classes.multilink}`;
}
return (
Expand Down
10 changes: 5 additions & 5 deletions components/Infos/__snapshots__/Infos.stories.storyshot
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,10 @@ exports[`Storyshots Infos With Reply Count Info 1`] = `
arrow={true}
title={
<div
className="makeStyles-opinions-157"
className="makeStyles-opinions-174"
>
<span
className="makeStyles-opinion-158"
className="makeStyles-opinion-175"
>
<NOT_ARTICLE
fontSize="inherit"
Expand All @@ -106,7 +106,7 @@ exports[`Storyshots Infos With Reply Count Info 1`] = `
</span>
</span>
<span
className="makeStyles-opinion-158"
className="makeStyles-opinion-175"
>
<OPINIONATED
fontSize="inherit"
Expand All @@ -116,7 +116,7 @@ exports[`Storyshots Infos With Reply Count Info 1`] = `
</span>
</span>
<span
className="makeStyles-opinion-158"
className="makeStyles-opinion-175"
>
<NOT_RUMOR
fontSize="inherit"
Expand All @@ -126,7 +126,7 @@ exports[`Storyshots Infos With Reply Count Info 1`] = `
</span>
</span>
<span
className="makeStyles-opinion-158"
className="makeStyles-opinion-175"
>
<RUMOR
fontSize="inherit"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ exports[`Storyshots ReportPage/ActionButton Default 1`] = `
}
>
<button
className="MuiButtonBase-root-302 MuiButton-root-275 MuiButton-outlined-280 makeStyles-button"
className="MuiButtonBase-root-319 MuiButton-root-292 MuiButton-outlined-297 makeStyles-button"
disabled={false}
onBlur={[Function]}
onDragLeave={[Function]}
Expand All @@ -31,13 +31,13 @@ exports[`Storyshots ReportPage/ActionButton Default 1`] = `
type="button"
>
<span
className="MuiButton-label-276"
className="MuiButton-label-293"
>
Action button text
<Arrow>
<svg
aria-hidden={true}
className="MuiSvgIcon-root-303"
className="MuiSvgIcon-root-320"
focusable="false"
viewBox="0 0 14 27"
>
Expand All @@ -51,7 +51,7 @@ exports[`Storyshots ReportPage/ActionButton Default 1`] = `
</Arrow>
</span>
<span
className="MuiTouchRipple-root-312"
className="MuiTouchRipple-root-329"
>
<TransitionGroup
childFactory={[Function]}
Expand Down
10 changes: 5 additions & 5 deletions components/__snapshots__/Hyperlinks.stories.storyshot
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ exports[`Storyshots Hyperlinks All Variants 1`] = `
}
>
<section
className="MuiBox-root MuiBox-root"
className="MuiBox-root MuiBox-root makeStyles-root makeStyles-multilink"
>
<Hyperlink
hyperlink={
Expand All @@ -44,7 +44,7 @@ exports[`Storyshots Hyperlinks All Variants 1`] = `
key="0"
>
<article
className="makeStyles-root"
className="makeStyles-linkcard"
>
<h1
title="Lorum Ipsum - Demo Site"
Expand Down Expand Up @@ -98,7 +98,7 @@ exports[`Storyshots Hyperlinks All Variants 1`] = `
key="1"
>
<article
className="makeStyles-root"
className="makeStyles-linkcard"
>
<h1
title="This site has image"
Expand Down Expand Up @@ -153,7 +153,7 @@ exports[`Storyshots Hyperlinks All Variants 1`] = `
key="2"
>
<article
className="makeStyles-root"
className="makeStyles-linkcard"
>
<h1 />
<div
Expand Down Expand Up @@ -220,7 +220,7 @@ exports[`Storyshots Hyperlinks Polling 1`] = `
pollingType="articles"
>
<section
className="MuiBox-root MuiBox-root"
className="MuiBox-root MuiBox-root makeStyles-root"
>
<PollingHyperlink
pollingId="foo"
Expand Down
Loading