* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
-import { Link, Title } from 'design-system';
+import { HeadingDark, Link, Title } from 'design-system';
import * as React from 'react';
import { FormattedMessage } from 'react-intl';
import { useDocUrl } from '../../../helpers/docs';
/>
)}
</p>
-
<p className="sw-mb-2">
<FormattedMessage
defaultMessage={translate('settings.new_code_period.description3')}
}}
/>
</p>
-
- <p className="sw-mt-4">
- <strong>{translate('project_baseline.page.question')}</strong>
- </p>
+ <HeadingDark className="sw-mt-4" as="h2">
+ {translate('project_baseline.page.question')}
+ </HeadingDark>
</header>
);
}
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
-import { HeadingDark } from 'design-system';
+import { HeadingDark, LargeCenteredLayout, PageContentFontWrapper, Spinner } from 'design-system';
import React, { useCallback, useEffect, useMemo, useState } from 'react';
import { Helmet } from 'react-helmet-async';
import withAppStateContext from '../../../app/components/app-state/withAppStateContext';
} from '../../../app/components/available-features/withAvailableFeatures';
import withComponentContext from '../../../app/components/componentContext/withComponentContext';
import Suggestions from '../../../components/embed-docs-modal/Suggestions';
-import Spinner from '../../../components/ui/Spinner';
import { isBranch, sortBranches } from '../../../helpers/branch-like';
import { translate } from '../../../helpers/l10n';
import {
}, [resetStatesFromProjectNewCodeDefinition]);
return (
- <>
+ <LargeCenteredLayout id="new-code-rules-page">
<Suggestions suggestions="project_baseline" />
<Helmet defer={false} title={translate('project_baseline.page')} />
- <div className="page page-limited">
+ <PageContentFontWrapper className="sw-my-8 sw-body-sm">
<AppHeader canAdmin={!!appState.canAdmin} />
<Spinner loading={isLoading} />
{!isLoading && (
- <div className="panel-white project-baseline">
- {branchSupportEnabled && <h2>{translate('project_baseline.default_setting')}</h2>}
+ <div className="it__project-baseline">
+ {branchSupportEnabled && (
+ <HeadingDark as="h3" className="sw-mt-4">
+ {translate('project_baseline.default_setting')}
+ </HeadingDark>
+ )}
{globalNewCodeDefinition && isSpecificNewCodeDefinition !== undefined && (
<ProjectNewCodeDefinitionSelector
{globalNewCodeDefinition && branchSupportEnabled && (
<div className="sw-mt-6">
- <HeadingDark className="sw-mb-4">
+ <HeadingDark as="h3" className="sw-mb-4">
{translate('project_baseline.configure_branches')}
</HeadingDark>
<BranchList
)}
</div>
)}
- </div>
- </>
+ </PageContentFontWrapper>
+ </LargeCenteredLayout>
);
}