@@ -3,6 +3,8 @@ import { hot } from 'react-hot-loader/root';
33import CssBaseline from '@material-ui/core/CssBaseline' ;
44import NeoNotificationModal from '../modal/NotificationModal' ;
55import NeoWelcomeScreenModal from '../modal/WelcomeScreenModal' ;
6+ import { ThemeProvider } from '@material-ui/styles' ;
7+ import { lightTheme } from '../component/theme/Themes' ;
68import { connect } from 'react-redux' ;
79import {
810 applicationGetConnection ,
@@ -101,48 +103,50 @@ const Application = ({
101103
102104 // Only render the dashboard component if we have an active Neo4j connection.
103105 return (
104- < div ref = { ref } style = { { display : 'flex' } } >
105- < CssBaseline />
106- { /* TODO - clean this up. Only draw the placeholder if the connection is not established. */ }
107- < NeoDashboardPlaceholder connected = { connected } > </ NeoDashboardPlaceholder >
108- { connected ? < Dashboard onDownloadDashboardAsImage = { ( _ ) => downloadComponentAsImage ( ref ) } > </ Dashboard > : < > </ > }
109- { /* TODO - move all models into a pop-ups (or modals) component. */ }
110- < NeoAboutModal open = { aboutModalOpen } handleClose = { onAboutModalClose } getDebugState = { getDebugState } />
111- < NeoConnectionModal
112- open = { connectionModalOpen }
113- dismissable = { connected }
114- connection = { connection }
115- ssoSettings = { ssoSettings }
116- standalone = { standaloneSettings . standalone }
117- standaloneSettings = { standaloneSettings }
118- createConnection = { createConnection }
119- onSSOAttempt = { onSSOAttempt }
120- onConnectionModalClose = { onConnectionModalClose }
121- > </ NeoConnectionModal >
122- < NeoWelcomeScreenModal
123- welcomeScreenOpen = { welcomeScreenOpen }
124- setWelcomeScreenOpen = { setWelcomeScreenOpen }
125- hasCachedDashboard = { hasCachedDashboard }
126- hasNeo4jDesktopConnection = { hasNeo4jDesktopConnection }
127- onConnectionModalOpen = { onConnectionModalOpen }
128- createConnectionFromDesktopIntegration = { createConnectionFromDesktopIntegration }
129- onAboutModalOpen = { onAboutModalOpen }
130- resetDashboard = { resetDashboard }
131- > </ NeoWelcomeScreenModal >
132- < NeoUpgradeOldDashboardModal
133- open = { oldDashboard }
134- text = { oldDashboard }
135- loadDashboard = { loadDashboard }
136- clearOldDashboard = { clearOldDashboard }
137- />
138- < NeoLoadSharedDashboardModal
139- shareDetails = { shareDetails }
140- onResetShareDetails = { onResetShareDetails }
141- onConfirmLoadSharedDashboard = { onConfirmLoadSharedDashboard }
142- />
143- < NeoReportHelpModal open = { reportHelpModalOpen } handleClose = { onReportHelpModalClose } />
144- < NeoNotificationModal > </ NeoNotificationModal >
145- </ div >
106+ < ThemeProvider theme = { lightTheme } >
107+ < div ref = { ref } style = { { display : 'flex' } } >
108+ < CssBaseline />
109+ { /* TODO - clean this up. Only draw the placeholder if the connection is not established. */ }
110+ < NeoDashboardPlaceholder connected = { connected } > </ NeoDashboardPlaceholder >
111+ { connected ? < Dashboard onDownloadDashboardAsImage = { ( _ ) => downloadComponentAsImage ( ref ) } > </ Dashboard > : < > </ > }
112+ { /* TODO - move all models into a pop-ups (or modals) component. */ }
113+ < NeoAboutModal open = { aboutModalOpen } handleClose = { onAboutModalClose } getDebugState = { getDebugState } />
114+ < NeoConnectionModal
115+ open = { connectionModalOpen }
116+ dismissable = { connected }
117+ connection = { connection }
118+ ssoSettings = { ssoSettings }
119+ standalone = { standaloneSettings . standalone }
120+ standaloneSettings = { standaloneSettings }
121+ createConnection = { createConnection }
122+ onSSOAttempt = { onSSOAttempt }
123+ onConnectionModalClose = { onConnectionModalClose }
124+ > </ NeoConnectionModal >
125+ < NeoWelcomeScreenModal
126+ welcomeScreenOpen = { welcomeScreenOpen }
127+ setWelcomeScreenOpen = { setWelcomeScreenOpen }
128+ hasCachedDashboard = { hasCachedDashboard }
129+ hasNeo4jDesktopConnection = { hasNeo4jDesktopConnection }
130+ onConnectionModalOpen = { onConnectionModalOpen }
131+ createConnectionFromDesktopIntegration = { createConnectionFromDesktopIntegration }
132+ onAboutModalOpen = { onAboutModalOpen }
133+ resetDashboard = { resetDashboard }
134+ > </ NeoWelcomeScreenModal >
135+ < NeoUpgradeOldDashboardModal
136+ open = { oldDashboard }
137+ text = { oldDashboard }
138+ loadDashboard = { loadDashboard }
139+ clearOldDashboard = { clearOldDashboard }
140+ />
141+ < NeoLoadSharedDashboardModal
142+ shareDetails = { shareDetails }
143+ onResetShareDetails = { onResetShareDetails }
144+ onConfirmLoadSharedDashboard = { onConfirmLoadSharedDashboard }
145+ />
146+ < NeoReportHelpModal open = { reportHelpModalOpen } handleClose = { onReportHelpModalClose } />
147+ < NeoNotificationModal > </ NeoNotificationModal >
148+ </ div >
149+ </ ThemeProvider >
146150 ) ;
147151} ;
148152
0 commit comments