Add uptime to resources widget

This commit is contained in:
shamoon 2023-03-05 14:57:20 -08:00
parent f46addf20a
commit b51af4377f
4 changed files with 76 additions and 1 deletions

View file

@ -2,6 +2,7 @@ import Disk from "./disk";
import Cpu from "./cpu";
import Memory from "./memory";
import CpuTemp from "./cputemp";
import Uptime from "./uptime";
export default function Resources({ options }) {
const { expanded, units } = options;
@ -14,6 +15,7 @@ export default function Resources({ options }) {
? options.disk.map((disk) => <Disk key={disk} options={{ disk }} expanded={expanded} />)
: options.disk && <Disk options={options} expanded={expanded} />}
{options.cputemp && <CpuTemp expanded={expanded} units={units} />}
{options.uptime && <Uptime />}
</div>
{options.label && (
<div className="ml-6 pt-1 text-center text-theme-800 dark:text-theme-200 text-xs">{options.label}</div>