Rename unifi_console info widget to unifi
This commit is contained in:
1 parent
42da3eca28
commit
fe1064b173
4 files changed
+5
-6
No files matched your search
+1
-1
@@ -9,7 +9,7 @@ export default function Widget({ options }) {
|
||||
const { t } = useTranslation();
|
||||
|
||||
// eslint-disable-next-line no-param-reassign
|
||||
options.type = "unifi_console";
|
||||
options.type = "unifi";
|
||||
const { data: statsData, error: statsError } = useWidgetAPI(options, "stat/sites");
|
||||
|
||||
if (statsError || statsData?.error) {
|
||||
@@ -10,7 +10,7 @@ const widgetMappings = {
|
||||
greeting: dynamic(() => import("components/widgets/greeting/greeting")),
|
||||
datetime: dynamic(() => import("components/widgets/datetime/datetime")),
|
||||
logo: dynamic(() => import("components/widgets/logo/logo"), { ssr: false }),
|
||||
unifi_console: dynamic(() => import("components/widgets/unifi_console/unifi_console")),
|
||||
unifi: dynamic(() => import("components/widgets/unifi/unifi")),
|
||||
};
|
||||
|
||||
export default function Widget({ widget }) {
|
||||
|
||||
Reference in new issue
Block a user