From 67bbbae22cd90850bb33add7f0d1ad04e9e46955 Mon Sep 17 00:00:00 2001 From: MrOrz Date: Sun, 21 Jul 2024 19:14:45 +0800 Subject: [PATCH] fix(components): update snapshot due to css-in-js id change --- components/Hyperlinks.js | 2 +- components/Infos/__snapshots__/Infos.stories.storyshot | 10 +++++----- .../__snapshots__/ActionButton.stories.storyshot | 8 ++++---- components/__snapshots__/Hyperlinks.stories.storyshot | 10 +++++----- 4 files changed, 15 insertions(+), 15 deletions(-) diff --git a/components/Hyperlinks.js b/components/Hyperlinks.js index 6574d051..021d2b74 100644 --- a/components/Hyperlinks.js +++ b/components/Hyperlinks.js @@ -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 ( diff --git a/components/Infos/__snapshots__/Infos.stories.storyshot b/components/Infos/__snapshots__/Infos.stories.storyshot index 62e56050..c8c48504 100644 --- a/components/Infos/__snapshots__/Infos.stories.storyshot +++ b/components/Infos/__snapshots__/Infos.stories.storyshot @@ -93,10 +93,10 @@ exports[`Storyshots Infos With Reply Count Info 1`] = ` arrow={true} title={