Skip to content

Commit cd28e07

Browse files
committed
Correct wrong configuration key in ThemeSwitcher component
The configuration key for the theme switcher in the ThemeSwitcher component was corrected. The key was erroneously written as 'theme-toggle' while the correct one is 'theme_toggle', as specified in the 'lazy' configuration file. This change ensures that the theme switching feature works as expected.
1 parent 79cc718 commit cd28e07

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Components/ThemeSwitcher.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class ThemeSwitcher extends LazyComponent
1111
public function render(): Closure|View
1212
{
1313
return function (array $data) {
14-
$data['attributes']['themeToggle'] = config('lazy.themes.theme-toggle');
14+
$data['attributes']['themeToggle'] = config('lazy.themes.theme_toggle');
1515
$data['attributes']['toggleThemes'] = config('lazy.themes.toggle_themes');
1616
$data['attributes']['themes'] = config('lazy.themes.themes');
1717

0 commit comments

Comments
 (0)