@@ -2,11 +2,12 @@ import * as React from 'react';
22import { inject , observer } from 'mobx-react' ;
33import { Link } from 'react-router-dom' ;
44import Media from 'react-media' ;
5- import { patronUrl , searchUrl } from 'common/utils/url-generator' ;
5+ import { patronUrl , searchUrl , exploreUrl } from 'common/utils/url-generator' ;
66
77import SearchIcon from 'react-icons/lib/go/search' ;
88import PlusIcon from 'react-icons/lib/go/plus' ;
99import BellIcon from 'react-icons/lib/md/notifications' ;
10+ import FlameIcon from 'react-icons/lib/go/flame' ;
1011import Row from 'common/components/flex/Row' ;
1112import Tooltip from 'common/components/Tooltip' ;
1213import PatronBadge from '-!svg-react-loader!common/utils/badges/svg/patron-4.svg' ; // eslint-disable-line import/no-webpack-loader-syntax
@@ -34,7 +35,7 @@ function Navigation({ signals, store, title, searchNoInput }) {
3435 < Row justifyContent = "space-between" >
3536 < TitleWrapper >
3637 < a href = "/?from-app=1" >
37- < LogoWithBorder height = { 40 } width = { 40 } />
38+ < LogoWithBorder height = { 35 } width = { 35 } />
3839 </ a >
3940 < Border width = { 1 } size = { 500 } />
4041 < Title > { title } </ Title >
@@ -56,6 +57,15 @@ function Navigation({ signals, store, title, searchNoInput }) {
5657 }
5758 </ Media >
5859 </ Action >
60+
61+ < Action >
62+ < Tooltip position = "bottom" title = "Explore Sandboxes" >
63+ < a style = { { color : 'white' } } href = { exploreUrl ( ) } >
64+ < FlameIcon />
65+ </ a >
66+ </ Tooltip >
67+ </ Action >
68+
5969 { ! isPatron && (
6070 < Action >
6171 < Tooltip position = "bottom" title = "Support CodeSandbox" >
@@ -66,26 +76,14 @@ function Navigation({ signals, store, title, searchNoInput }) {
6676 </ Action >
6777 ) }
6878
69- < Action
70- style = { { fontSize : '1.125rem' } }
71- onClick = { ( ) =>
72- signals . modalOpened ( {
73- modal : 'newSandbox' ,
74- } )
75- }
76- >
77- < Tooltip position = "bottom" title = "New Sandbox" >
78- < PlusIcon height = { 35 } />
79- </ Tooltip >
80- </ Action >
81-
8279 { user && (
8380 < OverlayComponent
8481 isOpen = { store . userNotifications . notificationsOpened }
8582 Overlay = { Notifications }
8683 onOpen = { signals . userNotifications . notificationsOpened }
8784 onClose = { signals . userNotifications . notificationsClosed }
8885 event = "Notifications"
86+ noHeightAnimation
8987 >
9088 { open => (
9189 < Action
@@ -100,6 +98,19 @@ function Navigation({ signals, store, title, searchNoInput }) {
10098 ) }
10199 </ OverlayComponent >
102100 ) }
101+
102+ < Action
103+ style = { { fontSize : '1.125rem' } }
104+ onClick = { ( ) =>
105+ signals . modalOpened ( {
106+ modal : 'newSandbox' ,
107+ } )
108+ }
109+ >
110+ < Tooltip position = "bottom" title = "New Sandbox" >
111+ < PlusIcon height = { 35 } />
112+ </ Tooltip >
113+ </ Action >
103114 </ Actions >
104115
105116 { isLoggedIn ? < UserMenu /> : < SignInButton /> }
0 commit comments