mirror of
https://github.com/bluewave-labs/Checkmate.git
synced 2026-01-25 19:29:39 -06:00
Some changes in ui
This commit is contained in:
@@ -26,17 +26,16 @@ const SettingsGlobalThresholds = ({
|
||||
temperature: "",
|
||||
});
|
||||
|
||||
// Load existing thresholds from settingsData on first render or when settingsData changes
|
||||
useEffect(() => {
|
||||
if (settingsData?.settings?.globalThresholds) {
|
||||
setThresholds({
|
||||
cpu: settingsData.settings.globalThresholds.cpu || "",
|
||||
memory: settingsData.settings.globalThresholds.memory || "",
|
||||
disk: settingsData.settings.globalThresholds.disk || "",
|
||||
temperature: settingsData.settings.globalThresholds.temperature || "",
|
||||
});
|
||||
}
|
||||
}, [settingsData]);
|
||||
// Load existing thresholds from settingsData
|
||||
|
||||
if (settingsData?.settings?.globalThresholds) {
|
||||
setThresholds({
|
||||
cpu: settingsData.settings.globalThresholds.cpu || "",
|
||||
memory: settingsData.settings.globalThresholds.memory || "",
|
||||
disk: settingsData.settings.globalThresholds.disk || "",
|
||||
temperature: settingsData.settings.globalThresholds.temperature || "",
|
||||
});
|
||||
}
|
||||
|
||||
// Handles input change and updates state & parent data
|
||||
const handleChange = (e, min, max) => {
|
||||
|
||||
Reference in New Issue
Block a user