File tree Expand file tree Collapse file tree 1 file changed +18
-12
lines changed
code/addons/docs/src/blocks/components Expand file tree Collapse file tree 1 file changed +18
-12
lines changed Original file line number Diff line number Diff line change @@ -97,17 +97,23 @@ export const Toolbar: FC<ToolbarProps> = ({
97
97
</ >
98
98
) }
99
99
</ Wrapper >
100
- < Wrapper key = "right" >
101
- < IconButton key = "opener" asChild >
102
- < a
103
- href = { getStoryHref ( baseUrl , storyId ) }
104
- target = "_blank"
105
- rel = "noopener noreferrer"
106
- title = "Open canvas in new tab"
107
- >
108
- < ShareAltIcon />
109
- </ a >
110
- </ IconButton >
111
- </ Wrapper >
100
+ { baseUrl && storyId && (
101
+ < Wrapper key = "right" >
102
+ { isLoading ? (
103
+ < IconPlaceholder />
104
+ ) : (
105
+ < IconButton key = "opener" asChild >
106
+ < a
107
+ href = { getStoryHref ( baseUrl , storyId ) }
108
+ target = "_blank"
109
+ rel = "noopener noreferrer"
110
+ title = "Open canvas in new tab"
111
+ >
112
+ < ShareAltIcon />
113
+ </ a >
114
+ </ IconButton >
115
+ ) }
116
+ </ Wrapper >
117
+ ) }
112
118
</ Bar >
113
119
) ;
You can’t perform that action at this time.
0 commit comments