mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-08 16:59:50 +03:00
react-router updates
This commit is contained in:
@@ -306,9 +306,9 @@ const Devices = () => {
|
|||||||
|
|
||||||
const customize = () => {
|
const customize = () => {
|
||||||
if (selectedDevice === 99) {
|
if (selectedDevice === 99) {
|
||||||
navigate('/customentities');
|
void navigate('/customentities');
|
||||||
} else {
|
} else {
|
||||||
navigate('/customizations', { state: selectedDevice });
|
void navigate('/customizations', { state: selectedDevice });
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ const Network = () => {
|
|||||||
const selectNetwork = useCallback(
|
const selectNetwork = useCallback(
|
||||||
(network: WiFiNetwork) => {
|
(network: WiFiNetwork) => {
|
||||||
setSelectedNetwork(network);
|
setSelectedNetwork(network);
|
||||||
navigate('settings');
|
void navigate('/settings');
|
||||||
},
|
},
|
||||||
[navigate]
|
[navigate]
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user