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