File tree Expand file tree Collapse file tree
packages/react/src/modules/guide/components/Toolbar/V2 Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ const GuidesList = ({
3838export const V2 = ( ) => {
3939 const { client } = useGuideContext ( ) ;
4040
41- const [ guidesListDisplayed , setGuidesListDisplayed ] =
41+ const [ guidesListDisplayOption , setGuidesListDisplayOption ] =
4242 React . useState < DisplayOption > ( "all-eligible" ) ;
4343
4444 const [ isVisible , setIsVisible ] = React . useState ( detectToolbarParam ( ) ) ;
@@ -84,8 +84,8 @@ export const V2 = () => {
8484 >
8585 < Box style = { { width : "220px" } } >
8686 < GuidesListDisplaySelect
87- value = { guidesListDisplayed }
88- onChange = { ( selected ) => setGuidesListDisplayed ( selected ) }
87+ value = { guidesListDisplayOption }
88+ onChange = { ( opt ) => setGuidesListDisplayOption ( opt ) }
8989 />
9090 </ Box >
9191
@@ -111,7 +111,7 @@ export const V2 = () => {
111111 { result . error && < Box > { result . error } </ Box > }
112112 < GuidesList
113113 guides = { result . guides }
114- displayOption = { guidesListDisplayed }
114+ displayOption = { guidesListDisplayOption }
115115 />
116116 </ Box >
117117 </ Stack >
You can’t perform that action at this time.
0 commit comments