mirror of
https://github.com/OneUptime/oneuptime.git
synced 2026-04-06 00:32:12 +02:00
refactor(exceptions): expose className prop on TelemetryExceptionElement and pass max-w-3xl from ExceptionsTable
This commit is contained in:
@@ -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()}
|
||||
|
||||
@@ -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"}
|
||||
/>
|
||||
);
|
||||
},
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user