mirror of
https://github.com/ajnart/homarr.git
synced 2026-02-27 17:00:54 +01:00
* feat: add pi hole summary integration * feat: add pi hole summary widget * fix: type issues with integrations and integrationIds * feat: add middleware for integrations and improve cache redis channel * feat: add error boundary for widgets * fix: broken lock file * fix: format format issues * fix: typecheck issue * fix: deepsource issues * fix: widget sandbox without error boundary * chore: address pull request feedback * chore: remove todo comment and created issue * fix: format issues * fix: deepsource issue
20 lines
484 B
TypeScript
20 lines
484 B
TypeScript
import { IconPlugX } from "@tabler/icons-react";
|
|
|
|
import type { TranslationFunction } from "@homarr/translation";
|
|
|
|
import { ErrorBoundaryError } from "./base";
|
|
|
|
export class NoIntegrationSelectedError extends ErrorBoundaryError {
|
|
constructor() {
|
|
super("No integration selected");
|
|
}
|
|
|
|
public getErrorBoundaryData() {
|
|
return {
|
|
icon: IconPlugX,
|
|
message: (t: TranslationFunction) => t("widget.common.error.noIntegration"),
|
|
showLogsLink: false,
|
|
};
|
|
}
|
|
}
|