File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
libs/remix-ui/app/src/lib/remix-app Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -92,7 +92,7 @@ const ManagePreferencesSwitcher = (prop: {
92
92
)
93
93
}
94
94
95
- const ManagePreferencesDialog = ( ) => {
95
+ const ManagePreferencesDialog = ( props ) => {
96
96
const { modal } = useDialogDispatchers ( )
97
97
const { settings } = useContext ( AppContext )
98
98
const [ visible , setVisible ] = useState < boolean > ( true )
@@ -118,6 +118,7 @@ const ManagePreferencesDialog = () => {
118
118
settings . updateMatomoAnalyticsChoice ( true ) // Always true for matomo Anonymous analytics
119
119
settings . updateMatomoPerfAnalyticsChoice ( switcherState . current . matPerfSwitch ) // Enable/Disable Matomo Performance analytics
120
120
settings . updateCopilotChoice ( switcherState . current . remixAISwitch ) // Enable/Disable RemixAI copilot
121
+ props . savePreferencesFn ( )
121
122
}
122
123
123
124
return < > </ >
Original file line number Diff line number Diff line change @@ -238,7 +238,7 @@ const RemixApp = (props: IRemixAppUi) => {
238
238
< OriginWarning > </ OriginWarning >
239
239
< MatomoDialog hide = { ! appReady } acceptAllFn = { ( ) => setShowEnterDialog ( true ) } managePreferencesFn = { ( ) => setShowManagePreferencesDialog ( true ) } > </ MatomoDialog >
240
240
{ showEnterDialog && < EnterDialog handleUserChoice = { ( type ) => handleUserChosenType ( type ) } > </ EnterDialog > }
241
- { showManagePreferencesDialog && < ManagePreferencesDialog > </ ManagePreferencesDialog > }
241
+ { showManagePreferencesDialog && < ManagePreferencesDialog savePreferencesFn = { ( ) => setShowEnterDialog ( true ) } > </ ManagePreferencesDialog > }
242
242
< div className = 'd-flex flex-column' >
243
243
< div className = { `remixIDE ${ appReady ? '' : 'd-none' } ` } data-id = "remixIDE" >
244
244
< div id = "icon-panel" data-id = "remixIdeIconPanel" className = "custom_icon_panel iconpanel bg-light" >
You can’t perform that action at this time.
0 commit comments