Skip to content

Commit cc9c562

Browse files
committed
Button fixes for bookmarked templates
1 parent 8267837 commit cc9c562

File tree

1 file changed

+11
-1
lines changed
  • packages/app/src/app/pages/Dashboard/Content/routes/Templates/FollowedTemplates

1 file changed

+11
-1
lines changed

packages/app/src/app/pages/Dashboard/Content/routes/Templates/FollowedTemplates/index.tsx

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import {
1515
UnbookmarkTemplateFromDashboardMutationVariables,
1616
ListPersonalBookmarkedTemplatesQuery,
1717
} from 'app/graphql/types';
18+
import { useOvermind } from 'app/overmind';
1819
import { ButtonContainer } from './elements';
1920

2021
import { 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>

0 commit comments

Comments
 (0)