Skip to content

Commit

Permalink
[ProfileLnk][ArticleReplySummary] update snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
MrOrz committed Jan 20, 2021
1 parent 54f3b2a commit 13ef4ef
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 52 deletions.
57 changes: 20 additions & 37 deletions components/__snapshots__/ArticleReplySummary.stories.storyshot
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ exports[`Storyshots ArticleReplySummary Different Reply Types 1`] = `
<div
className="makeStyles-replyType makeStyles-replyType"
>
<ProfileLink
hasTooltip={true}
<ProfileTooltip
key="editor"
user={
Object {
Expand All @@ -27,40 +26,25 @@ exports[`Storyshots ArticleReplySummary Different Reply Types 1`] = `
}
}
>
<Link
href="/user?id=test-user"
<Tooltip
placement="top"
title="Lv.10 闢謠天行者"
>
<a
href="/user?id=test-user"
onClick={[Function]}
onMouseEnter={[Function]}
style={
Object {
"color": "inherit",
}
}
<span
aria-describedby={null}
className=""
onBlur={[Function]}
onFocus={[Function]}
onMouseLeave={[Function]}
onMouseOver={[Function]}
onTouchEnd={[Function]}
onTouchStart={[Function]}
title="Lv.10 闢謠天行者"
>
<Tooltip
placement="top"
title="Lv.10 闢謠天行者"
>
<span
aria-describedby={null}
className=""
onBlur={[Function]}
onFocus={[Function]}
onMouseLeave={[Function]}
onMouseOver={[Function]}
onTouchEnd={[Function]}
onTouchStart={[Function]}
title="Lv.10 闢謠天行者"
>
The user
</span>
</Tooltip>
</a>
</Link>
</ProfileLink>
The user
</span>
</Tooltip>
</ProfileTooltip>
mark this message
invalid request
</div>
Expand All @@ -79,15 +63,14 @@ exports[`Storyshots ArticleReplySummary No Valid User 1`] = `
<div
className="makeStyles-replyType makeStyles-replyType"
>
<ProfileLink
hasTooltip={true}
<ProfileTooltip
key="editor"
user={null}
>
<span>
Someone
</span>
</ProfileLink>
</ProfileTooltip>
mark this message
contains true information
</div>
Expand Down
40 changes: 25 additions & 15 deletions components/__snapshots__/ProfileLink.stories.storyshot
Original file line number Diff line number Diff line change
Expand Up @@ -25,24 +25,34 @@ exports[`Storyshots ProfileLink All Props 1`] = `
}
}
>
<Tooltip
placement="top"
title="Lv.10 闢謠天行者"
<ProfileTooltip
user={
Object {
"id": "123",
"level": 10,
"slug": "slug123",
}
}
>
<span
aria-describedby={null}
className=""
onBlur={[Function]}
onFocus={[Function]}
onMouseLeave={[Function]}
onMouseOver={[Function]}
onTouchEnd={[Function]}
onTouchStart={[Function]}
<Tooltip
placement="top"
title="Lv.10 闢謠天行者"
>
Child
</span>
</Tooltip>
<span
aria-describedby={null}
className=""
onBlur={[Function]}
onFocus={[Function]}
onMouseLeave={[Function]}
onMouseOver={[Function]}
onTouchEnd={[Function]}
onTouchStart={[Function]}
title="Lv.10 闢謠天行者"
>
Child
</span>
</Tooltip>
</ProfileTooltip>
</a>
</Link>
</ProfileLink>
Expand Down

0 comments on commit 13ef4ef

Please sign in to comment.