Add device name formatting
This commit is contained in:
1 parent
ffa4b1695b
commit
f8d5791fab
1 file changed
+9
@@ -120,6 +120,14 @@ const useHardwareUtils = () => {
|
||||
}
|
||||
};
|
||||
|
||||
const formatDeviceName = (device) => {
|
||||
return (
|
||||
<>
|
||||
{String(device)}
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
/**
|
||||
* Converts a decimal value to a percentage
|
||||
*
|
||||
@@ -178,6 +186,7 @@ const useHardwareUtils = () => {
|
||||
|
||||
return {
|
||||
formatBytes,
|
||||
formatDeviceName,
|
||||
decimalToPercentage,
|
||||
buildTemps,
|
||||
getDimensions,
|
||||
|
||||
Reference in new issue
Block a user