Skip to content

Commit

Permalink
fixup! Change text from 'Regular CV' to CV
Browse files Browse the repository at this point in the history
  • Loading branch information
quba42 committed Jan 9, 2025
1 parent 977b416 commit 72f723a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 12 deletions.
10 changes: 7 additions & 3 deletions webpack/scenes/ContentViews/Create/CreateContentViewForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ import { LabelDependencies, LabelAutoPublish } from './ContentViewFormComponents
import ContentViewIcon from '../components/ContentViewIcon';
import './CreateContentViewForm.scss';

const contentViewDescription = 'Contains repositories. Versions are published and optionally filtered.'

Check failure on line 14 in webpack/scenes/ContentViews/Create/CreateContentViewForm.js

View workflow job for this annotation

GitHub Actions / react-tests / Foreman develop Ruby 2.7 and Node 18

Missing semicolon
const compositeContentViewDescription = 'Contains content views. You must choose the version to use for each content view.'

Check failure on line 15 in webpack/scenes/ContentViews/Create/CreateContentViewForm.js

View workflow job for this annotation

GitHub Actions / react-tests / Foreman develop Ruby 2.7 and Node 18

Missing semicolon
const rollingContentViewDescription = 'Contains repositories. Always serves the latest synced content, without the need to publish versions.'

Check failure on line 16 in webpack/scenes/ContentViews/Create/CreateContentViewForm.js

View workflow job for this annotation

GitHub Actions / react-tests / Foreman develop Ruby 2.7 and Node 18

Missing semicolon

const CreateContentViewForm = ({ setModalOpen }) => {
const dispatch = useDispatch();
const [name, setName] = useState('');
Expand Down Expand Up @@ -144,7 +148,7 @@ const CreateContentViewForm = ({ setModalOpen }) => {
onClick={() => { setComponent(true); setComposite(false); setRolling(false); }}
isSelected={component}
>
{__('Contains repositories. Versions are published and optionally filtered.')}
{__(contentViewDescription)}
</Tile>
</GridItem>
<GridItem span={4}>
Expand All @@ -158,7 +162,7 @@ const CreateContentViewForm = ({ setModalOpen }) => {
onClick={() => { setComposite(true); setComponent(false); setRolling(false); }}
isSelected={composite}
>
{__('Contains content views. You must choose the version to use for each content view.')}
{__(compositeContentViewDescription)}
</Tile>
</GridItem>
<GridItem span={4}>
Expand All @@ -172,7 +176,7 @@ const CreateContentViewForm = ({ setModalOpen }) => {
onClick={() => { setComposite(false); setComponent(false); setRolling(true); }}
isSelected={rolling}
>
{__('Contains repositories. Always serves the latest synced content, without the need to publish versions.')}
{__(rollingContentViewDescription)}
</Tile>
</GridItem>
</Grid>
Expand Down
13 changes: 4 additions & 9 deletions webpack/scenes/ContentViews/components/ContentViewsCounter.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { Grid, GridItem, Flex, FlexItem, Tooltip } from '@patternfly/react-core'
import { InProgressIcon, OutlinedQuestionCircleIcon } from '@patternfly/react-icons';
import ContentViewIcon from './ContentViewIcon';
import { selectOrganizationState } from '../../Organizations/OrganizationSelectors';
import { contentViewDescription, compositeContentViewDescription, rollingContentViewDescription } from '../Create/CreateContentViewForm';

const ContentViewsCounter = () => {
const organization = useSelector(selectOrganizationState);
Expand All @@ -30,9 +31,7 @@ const ContentViewsCounter = () => {
<FlexItem>
<Tooltip
position="top"
content={
__('Contains repositories. Versions are published and optionally filtered.')
}
content={__(contentViewDescription)}
>
<OutlinedQuestionCircleIcon />
</Tooltip>
Expand All @@ -53,9 +52,7 @@ const ContentViewsCounter = () => {
<FlexItem>
<Tooltip
position="top"
content={
__('Contains content views. You must choose the version to use for each content view.')
}
content={__(compositeContentViewDescription)}
>
<OutlinedQuestionCircleIcon />
</Tooltip>
Expand All @@ -76,9 +73,7 @@ const ContentViewsCounter = () => {
<FlexItem>
<Tooltip
position="top"
content={
__('Contains repositories. Always serves the latest synced content, without the need to publish versions.')
}
content={__(rollingContentViewDescription)}
>
<OutlinedQuestionCircleIcon />
</Tooltip>
Expand Down

0 comments on commit 72f723a

Please sign in to comment.