Инициализация в новом репозитории

This commit is contained in:
commit eb1f18f53e
374 changed files with 226678 additions and 0 deletions

View file

@ -0,0 +1,21 @@
export const updateWifiData = (wifiData: any, nodes: any)=>{
const wifiName = wifiData.name;
const updatedNodes = nodes.map((node: any) => {
if (node.data.networkData && node.data.networkData.device === wifiName) {
return {
...node,
data: {
...node.data,
networkData: {
...node.data.networkData,
strength: wifiData.strength,
},
},
};
}
return node;
});
return updatedNodes
}