review: remove not yet used case ErrorCategory in rich error
This commit is contained in:
@@ -9,7 +9,6 @@ import { Trans, useTranslation } from "react-i18next";
|
|||||||
import {
|
import {
|
||||||
ErrorIcon,
|
ErrorIcon,
|
||||||
HostIcon,
|
HostIcon,
|
||||||
OfflineIcon,
|
|
||||||
PopOutIcon,
|
PopOutIcon,
|
||||||
} from "@vector-im/compound-design-tokens/assets/web/icons";
|
} from "@vector-im/compound-design-tokens/assets/web/icons";
|
||||||
|
|
||||||
@@ -85,10 +84,6 @@ const GenericECError: FC<{ error: ElementCallError }> = ({
|
|||||||
title = t("error.call_is_not_supported");
|
title = t("error.call_is_not_supported");
|
||||||
icon = HostIcon;
|
icon = HostIcon;
|
||||||
break;
|
break;
|
||||||
case ErrorCategory.NETWORK_CONNECTIVITY:
|
|
||||||
title = t("error.connection_lost");
|
|
||||||
icon = OfflineIcon;
|
|
||||||
break;
|
|
||||||
default:
|
default:
|
||||||
title = t("error.generic");
|
title = t("error.generic");
|
||||||
icon = ErrorIcon;
|
icon = ErrorIcon;
|
||||||
|
|||||||
Reference in New Issue
Block a user