File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed
packages/app/src/app/pages/Dashboard/Content/routes/Templates/FollowedTemplates Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ import {
1515 UnbookmarkTemplateFromDashboardMutationVariables ,
1616 ListPersonalBookmarkedTemplatesQuery ,
1717} from 'app/graphql/types' ;
18+ import { useOvermind } from 'app/overmind' ;
1819import { ButtonContainer } from './elements' ;
1920
2021import { Container , Grid , EmptyTitle } from '../elements' ;
@@ -27,6 +28,8 @@ export const FollowedTemplates = props => {
2728 ListPersonalBookmarkedTemplatesQuery [ 'me' ] [ 'bookmarkedTemplates' ]
2829 > ( ) ;
2930
31+ const { actions } = useOvermind ( ) ;
32+
3033 const { loading, error, data } = useQuery <
3134 ListPersonalBookmarkedTemplatesQuery
3235 > ( LIST_BOOKMARKED_TEMPLATES_QUERY ) ;
@@ -106,7 +109,14 @@ export const FollowedTemplates = props => {
106109 < Button small href = "/docs/templates" secondary >
107110 Learn more
108111 </ Button >
109- < Button small href = "/explore" >
112+ < Button
113+ small
114+ onClick = { ( ) => {
115+ actions . modalOpened ( {
116+ modal : 'newSandbox' ,
117+ } ) ;
118+ } }
119+ >
110120 Explore
111121 </ Button >
112122 </ ButtonContainer >
You can’t perform that action at this time.
0 commit comments