Skip to content

Commit

Permalink
chore: Make exports and imports match (#13449)
Browse files Browse the repository at this point in the history
Make the exports and default imports match for EventDataSection.

Refs SEN-697
  • Loading branch information
markstory authored May 29, 2019
1 parent 208a3e5 commit 9fc44b0
Show file tree
Hide file tree
Showing 13 changed files with 37 additions and 42 deletions.
6 changes: 3 additions & 3 deletions src/sentry/static/sentry/app/components/events/contexts.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import PropTypes from 'prop-types';
import React from 'react';

import {objectIsEmpty, toTitleCase, defined} from 'app/utils';
import GroupEventDataSection from 'app/components/events/eventDataSection';
import EventDataSection from 'app/components/events/eventDataSection';
import plugins from 'app/plugins';

const CONTEXT_TYPES = {
Expand Down Expand Up @@ -128,15 +128,15 @@ class ContextChunk extends React.Component {
}

return (
<GroupEventDataSection
<EventDataSection
group={group}
event={evt}
key={`context-${alias}`}
type={`context-${alias}`}
title={this.renderTitle(Component)}
>
<Component alias={alias} data={value} />
</GroupEventDataSection>
</EventDataSection>
);
}
}
Expand Down
11 changes: 3 additions & 8 deletions src/sentry/static/sentry/app/components/events/device.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';

import GroupEventDataSection from 'app/components/events/eventDataSection';
import EventDataSection from 'app/components/events/eventDataSection';
import SentryTypes from 'app/sentryTypes';
import {t} from 'app/locale';
import ContextData from 'app/components/contextData';
Expand All @@ -27,12 +27,7 @@ class DeviceInterface extends React.Component {
});

return (
<GroupEventDataSection
event={event}
type="device"
title={t('Device')}
wrapTitle={true}
>
<EventDataSection event={event} type="device" title={t('Device')} wrapTitle={true}>
<table className="table key-value">
<tbody>
{data.name && (
Expand Down Expand Up @@ -62,7 +57,7 @@ class DeviceInterface extends React.Component {
{extras}
</tbody>
</table>
</GroupEventDataSection>
</EventDataSection>
);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import React from 'react';
import {t} from 'app/locale';
import GuideAnchor from 'app/components/assistant/guideAnchor';

class GroupEventDataSection extends React.Component {
class EventDataSection extends React.Component {
static propTypes = {
title: PropTypes.any,
type: PropTypes.string.isRequired,
Expand Down Expand Up @@ -85,4 +85,4 @@ class GroupEventDataSection extends React.Component {
}
}

export default GroupEventDataSection;
export default EventDataSection;
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import PropTypes from 'prop-types';
import React from 'react';
import GroupEventDataSection from 'app/components/events/eventDataSection';
import EventDataSection from 'app/components/events/eventDataSection';
import SentryTypes from 'app/sentryTypes';
import GuideAnchor from 'app/components/assistant/guideAnchor';
import Breadcrumb from 'app/components/events/interfaces/breadcrumbs/breadcrumb';
Expand Down Expand Up @@ -211,7 +211,7 @@ class BreadcrumbsInterface extends React.Component {
crumbContent = this.renderNoMatch();
}
return (
<GroupEventDataSection
<EventDataSection
className="breadcrumb-box"
event={evt}
type={this.props.type}
Expand All @@ -224,7 +224,7 @@ class BreadcrumbsInterface extends React.Component {
)}
{crumbContent}
</ul>
</GroupEventDataSection>
</EventDataSection>
);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import PropTypes from 'prop-types';
import React from 'react';
import SentryTypes from 'app/sentryTypes';

import GroupEventDataSection from 'app/components/events/eventDataSection';
import EventDataSection from 'app/components/events/eventDataSection';
import CSPContent from 'app/components/events/interfaces/cspContent';
import CSPHelp from 'app/components/events/interfaces/cspHelp';
import {t} from 'app/locale';
Expand Down Expand Up @@ -77,9 +77,9 @@ export default class CspInterface extends React.Component {
const children = getView(view, data);

return (
<GroupEventDataSection event={event} type="csp" title={title} wrapTitle={false}>
<EventDataSection event={event} type="csp" title={title} wrapTitle={false}>
{children}
</GroupEventDataSection>
</EventDataSection>
);
}
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import PropTypes from 'prop-types';
import React from 'react';
import {t} from 'app/locale';
import GroupEventDataSection from 'app/components/events/eventDataSection';
import EventDataSection from 'app/components/events/eventDataSection';
import SentryTypes from 'app/sentryTypes';
import {isStacktraceNewestFirst} from 'app/components/events/interfaces/stacktrace';
import CrashHeader from 'app/components/events/interfaces/crashHeader';
Expand Down Expand Up @@ -54,7 +54,7 @@ class ExceptionInterface extends React.Component {
);

return (
<GroupEventDataSection event={event} type={type} title={title} wrapTitle={false}>
<EventDataSection event={event} type={type} title={title} wrapTitle={false}>
<CrashContent
projectId={projectId}
event={event}
Expand All @@ -63,7 +63,7 @@ class ExceptionInterface extends React.Component {
newestFirst={newestFirst}
exception={data}
/>
</GroupEventDataSection>
</EventDataSection>
);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import PropTypes from 'prop-types';
import React, {Component} from 'react';
import SentryTypes from 'app/sentryTypes';

import GroupEventDataSection from 'app/components/events/eventDataSection';
import EventDataSection from 'app/components/events/eventDataSection';
import KeyValueList from 'app/components/events/interfaces/keyValueList';
import {t} from 'app/locale';
import {objectToArray} from 'app/utils';
Expand Down Expand Up @@ -66,9 +66,9 @@ export default class GenericInterface extends Component {
const children = getView(view, data);

return (
<GroupEventDataSection event={event} type={type} title={title} wrapTitle={false}>
<EventDataSection event={event} type={type} title={title} wrapTitle={false}>
{children}
</GroupEventDataSection>
</EventDataSection>
);
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import PropTypes from 'prop-types';
import React from 'react';
import GroupEventDataSection from 'app/components/events/eventDataSection';
import EventDataSection from 'app/components/events/eventDataSection';
import SentryTypes from 'app/sentryTypes';
import RichHttpContent from 'app/components/events/interfaces/richHttpContent';
import {getFullUrl, getCurlCommand} from 'app/components/events/interfaces/utils';
Expand Down Expand Up @@ -107,7 +107,7 @@ class RequestInterface extends React.Component {
const title = <div>{children}</div>;

return (
<GroupEventDataSection
<EventDataSection
event={event}
type={type}
title={title}
Expand All @@ -119,7 +119,7 @@ class RequestInterface extends React.Component {
) : (
<RichHttpContent data={data} />
)}
</GroupEventDataSection>
</EventDataSection>
);
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import PropTypes from 'prop-types';
import React from 'react';
import ConfigStore from 'app/stores/configStore';
import GroupEventDataSection from 'app/components/events/eventDataSection';
import EventDataSection from 'app/components/events/eventDataSection';
import SentryTypes from 'app/sentryTypes';
import {t} from 'app/locale';
import CrashHeader from 'app/components/events/interfaces/crashHeader';
Expand Down Expand Up @@ -62,7 +62,7 @@ class StacktraceInterface extends React.Component {
);

return (
<GroupEventDataSection
<EventDataSection
event={event}
type={this.props.type}
title={title}
Expand All @@ -75,7 +75,7 @@ class StacktraceInterface extends React.Component {
newestFirst={newestFirst}
stacktrace={data}
/>
</GroupEventDataSection>
</EventDataSection>
);
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import PropTypes from 'prop-types';
import React from 'react';
import GroupEventDataSection from 'app/components/events/eventDataSection';
import EventDataSection from 'app/components/events/eventDataSection';
import SentryTypes from 'app/sentryTypes';
import Frame from 'app/components/events/interfaces/frame';
import {t} from 'app/locale';
Expand All @@ -14,7 +14,7 @@ class TemplateInterface extends React.Component {

render() {
return (
<GroupEventDataSection
<EventDataSection
event={this.props.event}
type={this.props.type}
title={<div>{t('Template')}</div>}
Expand All @@ -24,7 +24,7 @@ class TemplateInterface extends React.Component {
<Frame data={this.props.data} isExpanded={true} />
</ul>
</div>
</GroupEventDataSection>
</EventDataSection>
);
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import PropTypes from 'prop-types';
import React from 'react';
import GroupEventDataSection from 'app/components/events/eventDataSection';
import EventDataSection from 'app/components/events/eventDataSection';
import SentryTypes from 'app/sentryTypes';
import {isStacktraceNewestFirst} from 'app/components/events/interfaces/stacktrace';
import {defined} from 'app/utils';
Expand Down Expand Up @@ -287,7 +287,7 @@ class ThreadsInterface extends React.Component {
);

return (
<GroupEventDataSection
<EventDataSection
event={evt}
type={this.props.type}
title={title}
Expand All @@ -302,7 +302,7 @@ class ThreadsInterface extends React.Component {
event={evt}
newestFirst={newestFirst}
/>
</GroupEventDataSection>
</EventDataSection>
);
}
}
Expand Down
6 changes: 3 additions & 3 deletions src/sentry/static/sentry/app/components/events/sdk.jsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react';
import SentryTypes from 'app/sentryTypes';

import GroupEventDataSection from 'app/components/events/eventDataSection';
import EventDataSection from 'app/components/events/eventDataSection';
import {t} from 'app/locale';

class EventSdk extends React.Component {
Expand All @@ -14,7 +14,7 @@ class EventSdk extends React.Component {
const data = event.sdk;

return (
<GroupEventDataSection event={event} type="sdk" title={t('SDK')} wrapTitle={true}>
<EventDataSection event={event} type="sdk" title={t('SDK')} wrapTitle={true}>
<table className="table key-value">
<tbody>
<tr key="name">
Expand All @@ -31,7 +31,7 @@ class EventSdk extends React.Component {
</tr>
</tbody>
</table>
</GroupEventDataSection>
</EventDataSection>
);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -818,7 +818,7 @@ exports[`SharedGroupDetails renders 1`] = `
projectId="project-slug"
type="message"
>
<GroupEventDataSection
<EventDataSection
event={
Object {
"dateCreated": "2019-05-21T18:01:48.762Z",
Expand Down Expand Up @@ -896,7 +896,7 @@ exports[`SharedGroupDetails renders 1`] = `
</pre>
</div>
</div>
</GroupEventDataSection>
</EventDataSection>
</MessageInterface>
</div>
Expand Down

0 comments on commit 9fc44b0

Please sign in to comment.