Remove ESLint configuration file and update type imports across components: Deleted eslint.config.js to streamline project setup. Updated type imports in layout, login, register, and other components to use direct imports for improved clarity and consistency. Enhanced error handling in various components and replaced apostrophes with HTML entities for better rendering.
This commit is contained in:
@@ -48,7 +48,10 @@ export function useBackgroundImage(
|
||||
if (preferences) {
|
||||
const imageKey = `${page}Background` as keyof Preferences;
|
||||
const customImage = preferences[imageKey];
|
||||
setBackgroundImage(customImage || defaultImage);
|
||||
// Utiliser requestAnimationFrame pour éviter les cascades de rendu
|
||||
requestAnimationFrame(() => {
|
||||
setBackgroundImage(customImage || defaultImage);
|
||||
});
|
||||
}
|
||||
}, [preferences, page, defaultImage]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user