1
- // (C) 2021 GoodData Corporation
1
+ // (C) 2021-2025 GoodData Corporation
2
2
import React from "react" ;
3
3
import { storiesOf } from "../../../_infra/storyRepository.js" ;
4
4
import { action } from "@storybook/addon-actions" ;
@@ -23,6 +23,7 @@ import { recordedBackend } from "@gooddata/sdk-backend-mockingbird";
23
23
import { ReferenceRecordings } from "@gooddata/reference-workspace" ;
24
24
import { idRef } from "@gooddata/sdk-model" ;
25
25
import { LabelsMock } from "./LabelsMock.js" ;
26
+ import { useResetFocus } from "../../../utils/useResetFocus.js" ;
26
27
27
28
const sharedObject : IAffectedSharedObject = {
28
29
ref : idRef ( "object" ) ,
@@ -166,6 +167,8 @@ const SelectedItemsExample = (): JSX.Element => {
166
167
* @internal
167
168
*/
168
169
export const AddGranteeExamples = ( ) : JSX . Element => {
170
+ useResetFocus ( 200 ) ;
171
+
169
172
return (
170
173
< InternalIntlWrapper >
171
174
< div className = "library-component screenshot-target" >
@@ -189,5 +192,9 @@ export const AddGranteeExamples = (): JSX.Element => {
189
192
} ;
190
193
191
194
storiesOf ( `${ UiKit } /ShareDialog/AddGranteeBase` )
192
- . add ( "full-featured" , ( ) => < AddGranteeExamples /> , { screenshot : true } )
193
- . add ( "themed" , ( ) => wrapWithTheme ( < AddGranteeExamples /> ) , { screenshot : true } ) ;
195
+ . add ( "full-featured" , ( ) => < AddGranteeExamples /> , {
196
+ screenshot : { delay : 300 } ,
197
+ } )
198
+ . add ( "themed" , ( ) => wrapWithTheme ( < AddGranteeExamples /> ) , {
199
+ screenshot : { delay : 300 } ,
200
+ } ) ;
0 commit comments