mirror of
https://github.com/Zagrios/bs-manager.git
synced 2026-07-03 14:08:25 +02:00
impove useThemeColor hook
This commit is contained in:
@@ -9,10 +9,9 @@ export function BsmProgressBar() {
|
||||
|
||||
const progressBarService = ProgressBarService.getInstance();
|
||||
|
||||
const progress= useObservable(progressBarService.progression$);
|
||||
const progress = useObservable(progressBarService.progression$);
|
||||
const visible = useObservable(progressBarService.visible$);
|
||||
const firstColor = useThemeColor("first-color");
|
||||
const secondColor = useThemeColor("second-color");
|
||||
const {firstColor, secondColor} = useThemeColor();
|
||||
|
||||
return (
|
||||
<AnimatePresence> { visible &&
|
||||
|
||||
Reference in New Issue
Block a user