mirror of
https://github.com/samkaraca/lazuri-doviguram.git
synced 2026-04-29 17:59:51 +00:00
admin tools change detector fixed
This commit is contained in:
parent
fd39a40165
commit
87b9ccfe80
@ -53,7 +53,7 @@ export function LessonSideBar({
|
||||
if (title !== adminLessonTitle || explanation !== adminLessonExplanation) {
|
||||
setModified(true);
|
||||
}
|
||||
}, [adminLessonExplanation, adminLessonTitle]);
|
||||
}, [adminLessonExplanation, adminLessonTitle, lessons]);
|
||||
|
||||
return (
|
||||
<aside className={`side-bar ${styles["lesson-side-bar"]}`}>
|
||||
|
||||
@ -60,7 +60,16 @@ export function ThemeSideBar({
|
||||
) {
|
||||
setModified(true);
|
||||
}
|
||||
});
|
||||
}, [
|
||||
title,
|
||||
explanation,
|
||||
image,
|
||||
youtubeVideoUrl,
|
||||
adminThemeTitle,
|
||||
adminThemeExplanation,
|
||||
adminTestfulThemeImage,
|
||||
adminTestfulThemeYoutubeVideoUrl,
|
||||
]);
|
||||
|
||||
const reset = () => {
|
||||
setAdminThemeTitle(title);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user