Skip to content

Commit

Permalink
Refactor config paths in ThemeSwitcher component
Browse files Browse the repository at this point in the history
The commit updates the configuration paths in the ThemeSwitcher component. Previously, the paths in the 'lazy/themes' configuration file were wrongly accessed. Now, the 'lazy.themes' configuration paths are correctly used.
  • Loading branch information
CrazyBoy49z committed Jun 11, 2024
1 parent 47e1b1c commit 514fca7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Components/ThemeSwitcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ class ThemeSwitcher extends LazyComponent
public function render(): Closure|View
{
return function (array $data) {
$data['attributes']['themeToggle'] = config('lazy/themes.theme_toggle');
$data['attributes']['toggleThemes'] = config('lazy/themes.toggle_themes');
$data['attributes']['themes'] = config('lazy/themes.themes');
$data['attributes']['themeToggle'] = config('lazy.themes.theme_toggle');
$data['attributes']['toggleThemes'] = config('lazy.themes.toggle_themes');
$data['attributes']['themes'] = config('lazy.themes.themes');

return view('lazy::themeswitcher', $this->mergeData($data))->render();
};
Expand Down

0 comments on commit 514fca7

Please sign in to comment.