impove useThemeColor hook

This commit is contained in:
MathieuG-P
2022-07-23 11:32:05 +02:00
parent 15619fa937
commit 93fcea7ff1
6 changed files with 41 additions and 37 deletions
@@ -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 &&