File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed
src/BootstrapBlazor/Services Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -34,11 +34,8 @@ public async ValueTask SetThemeAsync(string themeName)
3434 /// <summary>
3535 /// <inheritdoc/>
3636 /// </summary>
37- public void TriggerThemeChanged ( )
37+ public void TriggerThemeChanged ( string themeName )
3838 {
39- if ( ThemeChangedAsync is not null )
40- {
41- ThemeChangedAsync ( string . Empty ) ;
42- }
39+ ThemeChangedAsync ? . Invoke ( themeName ) ;
4340 }
4441}
Original file line number Diff line number Diff line change @@ -31,5 +31,6 @@ public interface IThemeProvider
3131 /// <summary>
3232 /// Trigger the theme changed event
3333 /// </summary>
34- void TriggerThemeChanged ( ) ;
34+ /// <param name="themeName">The name of the theme to set.</param>
35+ void TriggerThemeChanged ( string themeName ) ;
3536}
You can’t perform that action at this time.
0 commit comments