Add the DarkModeSwitcher component.
This commit is contained in:
+4
-1
@@ -26,11 +26,14 @@ import "flowbite/dist/flowbite.phoenix.js";
|
||||
import bidSort from "./bidSort";
|
||||
import authorRoleSort from "./authorRoleSort";
|
||||
|
||||
import darkModeHook from "../vendor/dark_mode"
|
||||
let DarkThemeToggle = darkModeHook;
|
||||
|
||||
let csrfToken = document.querySelector("meta[name='csrf-token']").getAttribute("content")
|
||||
let liveSocket = new LiveSocket("/live", Socket, {
|
||||
longPollFallbackMs: 2500,
|
||||
params: {_csrf_token: csrfToken},
|
||||
hooks: { bidSort, authorRoleSort }
|
||||
hooks: { bidSort, authorRoleSort, DarkThemeToggle }
|
||||
})
|
||||
|
||||
// Show progress bar on live navigation and form submits
|
||||
|
||||
Reference in New Issue
Block a user