[Refactor] Move to src-ui/views and src-ui/logics structure.
This commit is contained in:
11
src-ui/views/app/_app_controllers/FontFamilyController.jsx
Normal file
11
src-ui/views/app/_app_controllers/FontFamilyController.jsx
Normal file
@@ -0,0 +1,11 @@
|
||||
import { useEffect } from "react";
|
||||
import { useAppearance } from "@logics_configs";
|
||||
|
||||
export const FontFamilyController = () => {
|
||||
const { currentSelectedFontFamily } = useAppearance();
|
||||
useEffect(() => {
|
||||
document.documentElement.style.setProperty("--font_family", currentSelectedFontFamily.data);
|
||||
}, [currentSelectedFontFamily.data]);
|
||||
|
||||
return null;
|
||||
};
|
||||
Reference in New Issue
Block a user