const hasTypeData = !ruleDetails.isExternal || ruleDetails.type !== 'UNKNOWN';
return (
<div className="js-rule-meta">
- <header className="page-header">
+ <div className="page-header">
<div className="pull-right">
{this.renderKey()}
{!ruleDetails.isExternal && (
<h3 className="page-title coding-rules-detail-header">
<big>{ruleDetails.name}</big>
</h3>
- </header>
+ </div>
{hasTypeData && (
<ul className="coding-rules-detail-properties">
<div
className="js-rule-meta"
>
- <header
+ <div
className="page-header"
>
<div
Deprecated code should be removed
</big>
</h3>
- </header>
+ </div>
<ul
className="coding-rules-detail-properties"
>
<div
className="js-rule-meta"
>
- <header
+ <div
className="page-header"
>
<div
xoo:OneExternalIssuePerLine
</big>
</h3>
- </header>
+ </div>
</div>
`;
<div
className="js-rule-meta"
>
- <header
+ <div
className="page-header"
>
<div
One external issue per line
</big>
</h3>
- </header>
+ </div>
<ul
className="coding-rules-detail-properties"
>
export default function ListHeader({ canCreate, refreshQualityGates }: Props) {
return (
- <header className="page-header">
+ <div className="page-header">
{canCreate && (
<div className="page-actions">
<ModalButton
]}
/>
</div>
- </header>
+ </div>
);
}
return (
<div className="boxed-group boxed-group-inner js-profile-changelog">
- <header className="spacer-bottom">
+ <div className="spacer-bottom">
<ChangelogSearch
dateRange={{
from: query.since ? parseDate(query.since) : undefined,
onDateRangeChange={this.handleDateRangeChange}
onReset={this.handleReset}
/>
-
<DeferredSpinner loading={this.state.loading} className="spacer-left" />
- </header>
+ </div>
{this.state.events != null && this.state.events.length === 0 && <ChangelogEmpty />}
<div
className="boxed-group boxed-group-inner js-profile-changelog"
>
- <header
+ <div
className="spacer-bottom"
>
<ChangelogSearch
className="spacer-left"
loading={false}
/>
- </header>
+ </div>
<Changelog
events={
[
<div
className="boxed-group boxed-group-inner js-profile-changelog"
>
- <header
+ <div
className="spacer-bottom"
>
<ChangelogSearch
className="spacer-left"
loading={false}
/>
- </header>
+ </div>
<ChangelogEmpty />
</div>
`;
return (
<div className="boxed-group boxed-group-inner js-profile-comparison">
- <header>
- <ComparisonForm
- onCompare={this.handleCompare}
- profile={profile}
- profiles={profiles}
- withKey={withKey}
- />
+ <ComparisonForm
+ onCompare={this.handleCompare}
+ profile={profile}
+ profiles={profiles}
+ withKey={withKey}
+ />
- {this.state.loading && <i className="spinner spacer-left" />}
- </header>
+ {this.state.loading && <i className="spinner spacer-left" />}
{this.hasResults(this.state) && (
<div className="spacer-top">
</div>
)}
- <header className="boxed-group-header">
+ <div className="boxed-group-header">
<h2>{translate('quality_profiles.profile_inheritance')}</h2>
- </header>
+ </div>
<div className="boxed-group-inner">
{this.state.loading ? (
<div
className="boxed-group quality-profile-inheritance"
>
- <header
+ <div
className="boxed-group-header"
>
<h2>
quality_profiles.profile_inheritance
</h2>
- </header>
+ </div>
<div
className="boxed-group-inner"
>
<div
className="boxed-group quality-profile-inheritance"
>
- <header
+ <div
className="boxed-group-header"
>
<h2>
quality_profiles.profile_inheritance
</h2>
- </header>
+ </div>
<div
className="boxed-group-inner"
>
}));
return (
- <header className="quality-profiles-list-header clearfix">
+ <div className="quality-profiles-list-header clearfix">
<label htmlFor="quality-profiles-filter-input" className="spacer-right">
{translate('quality_profiles.filter_by')}:
</label>
isSearchable={true}
value={options.filter((o) => o.value === currentFilter)}
/>
- </header>
+ </div>
);
}
}
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`should render correctly 1`] = `
-<header
+<div
className="quality-profiles-list-header clearfix"
>
<label
}
value={[]}
/>
-</header>
+</div>
`;