refactor(exceptions): expose className prop on TelemetryExceptionElement and pass max-w-3xl from ExceptionsTable

This commit is contained in:
Nawaz Dhandala
2025-10-24 12:09:49 +01:00
parent 89b65d1e02
commit 160eba1ea4
3 changed files with 4 additions and 2 deletions

View File

@@ -13,6 +13,7 @@ export interface ComponentProps {
isResolved?: boolean | undefined;
isArchived?: boolean | undefined;
fingerprint?: string | undefined;
className?: string;
}
const TelemetryExceptionElement: FunctionComponent<ComponentProps> = (
@@ -81,7 +82,7 @@ const TelemetryExceptionElement: FunctionComponent<ComponentProps> = (
};
return (
<div className={` flex`}>
<div className={` ${props.className || ""} flex`}>
{getResolvedIcon()}
{getUnresolvedIcon()}
{getArchivedIcon()}

View File

@@ -463,6 +463,7 @@ const TelemetryExceptionTable: FunctionComponent<ComponentProps> = (
message={exception.message || exception.exceptionType || ""}
isResolved={exception.isResolved || false}
isArchived={exception.isArchived || false}
className={"max-w-3xl"}
/>
);
},

View File

@@ -56,7 +56,7 @@ export default tseslint.config(
"react/prop-types": "off", // TODO: Remove this rule
"no-control-regex": "off", // TODO: Remove this rule
"@typescript-eslint/no-explicit-any": "off", // TODO: Remove this rule
"@typescript-eslint/no-var-requires": "off", // TODO: Remove this rule
"@typescript-eslint/no-var-requires": "error",
"@typescript-eslint/no-duplicate-enum-values": "off", // TODO: Remove this rule
"no-constant-binary-expression": "off", // TODO: Remove this rule
"@typescript-eslint/ban-ts-comment": "error",