|
@@ -3,7 +3,7 @@ import styled from '@emotion/styled';
|
|
|
import ErrorBoundary from 'sentry/components/errorBoundary';
|
|
|
import {PlatformType} from 'sentry/types';
|
|
|
import {Event} from 'sentry/types/event';
|
|
|
-import {STACK_VIEW, StacktraceType} from 'sentry/types/stacktrace';
|
|
|
+import {StacktraceType, StackView} from 'sentry/types/stacktrace';
|
|
|
import {isNativePlatform} from 'sentry/utils/platform';
|
|
|
|
|
|
import Content from './content';
|
|
@@ -23,7 +23,7 @@ type Props = Pick<
|
|
|
inlined?: boolean;
|
|
|
maxDepth?: number;
|
|
|
meta?: Record<any, any>;
|
|
|
- stackView?: STACK_VIEW;
|
|
|
+ stackView?: StackView;
|
|
|
};
|
|
|
|
|
|
export function StackTraceContent({
|
|
@@ -38,7 +38,7 @@ export function StackTraceContent({
|
|
|
meta,
|
|
|
inlined,
|
|
|
}: Props) {
|
|
|
- if (stackView === STACK_VIEW.RAW) {
|
|
|
+ if (stackView === StackView.RAW) {
|
|
|
return (
|
|
|
<ErrorBoundary mini>
|
|
|
<pre className="traceback plain">
|
|
@@ -53,7 +53,7 @@ export function StackTraceContent({
|
|
|
<ErrorBoundary mini>
|
|
|
<StyledNativeContent
|
|
|
data={stacktrace}
|
|
|
- includeSystemFrames={stackView === STACK_VIEW.FULL}
|
|
|
+ includeSystemFrames={stackView === StackView.FULL}
|
|
|
platform={platform}
|
|
|
event={event}
|
|
|
newestFirst={newestFirst}
|
|
@@ -72,7 +72,7 @@ export function StackTraceContent({
|
|
|
<StyledHierarchicalGroupingContent
|
|
|
data={stacktrace}
|
|
|
className="no-exception"
|
|
|
- includeSystemFrames={stackView === STACK_VIEW.FULL}
|
|
|
+ includeSystemFrames={stackView === StackView.FULL}
|
|
|
platform={platform}
|
|
|
event={event}
|
|
|
newestFirst={newestFirst}
|
|
@@ -91,7 +91,7 @@ export function StackTraceContent({
|
|
|
<StyledContent
|
|
|
data={stacktrace}
|
|
|
className="no-exception"
|
|
|
- includeSystemFrames={stackView === STACK_VIEW.FULL}
|
|
|
+ includeSystemFrames={stackView === StackView.FULL}
|
|
|
platform={platform}
|
|
|
event={event}
|
|
|
newestFirst={newestFirst}
|