mirror of
https://github.com/gethomepage/homepage.git
synced 2026-01-06 23:42:09 +08:00
Feature: OpenWRT service widget (#2782)
* Feat: OpenWRT widget implementation * Update proxy.js * fixes from review --------- Co-authored-by: shamoon <4887959+shamoon@users.noreply.github.com>
This commit is contained in:
9
src/widgets/openwrt/component.jsx
Normal file
9
src/widgets/openwrt/component.jsx
Normal file
@@ -0,0 +1,9 @@
|
||||
import Interface from "./methods/interface";
|
||||
import System from "./methods/system";
|
||||
|
||||
export default function Component({ service }) {
|
||||
if (service.widget.interfaceName) {
|
||||
return <Interface service={service} />;
|
||||
}
|
||||
return <System service={service} />;
|
||||
}
|
||||
Reference in New Issue
Block a user