Refactor AudioPlayer and LyricSearch components/ AudioPlayer: add DJ controls (porting from old site), and optimize theme handling.
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
export function useHtmlThemeAttr () {
|
||||
import { useState, useEffect } from "react";
|
||||
|
||||
export function useHtmlThemeAttr() {
|
||||
const [theme, setTheme] = useState(() =>
|
||||
document.documentElement.getAttribute("data-theme") || "light"
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user