Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/components/Contribute/AuthorInformation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@ const AuthorInformation: React.FC<Props> = ({ formType, reset, formData, setDisa
return (
<>
<h2>
Author Information <span style={{ color: 'red' }}>*</span>
<strong>Author Information </strong>
<span style={{ color: 'red' }}>*</span>
</h2>
<p>Provide your information required for a GitHub DCO sign-off.</p>
<FormGroup isRequired key={'author-info-details-email'} label="Email address">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,7 @@
import React, { useEffect } from 'react';
import { checkSkillFormCompletion } from '../validation';
import { SkillFormData } from '@/types';
import {
ValidatedOptions,
FormFieldGroupExpandable,
FormFieldGroupHeader,
FormGroup,
TextInput,
FormHelperText,
HelperText,
HelperTextItem
} from '@patternfly/react-core';
import { ValidatedOptions, FormGroup, TextInput, FormHelperText, HelperText, HelperTextItem } from '@patternfly/react-core';
import { ExclamationCircleIcon } from '@patternfly/react-icons';

interface Props {
Expand Down Expand Up @@ -93,22 +84,12 @@ const AttributionInformation: React.FC<Props> = ({
};

return (
<FormFieldGroupExpandable
toggleAriaLabel="Details"
header={
<FormFieldGroupHeader
titleText={{
text: (
<p>
Attribution Information <span style={{ color: 'red' }}>*</span>
</p>
),
id: 'attribution-info-id'
}}
titleDescription="Provide attribution information."
/>
}
>
<>
<h2>
<strong>Attribution Information</strong> <span style={{ color: 'red' }}>*</span>
</h2>
<p>Provide attribution information for the skill.</p>

<FormGroup isRequired key={'attribution-info-details-title_work'} label="Work title">
<TextInput
isRequired
Expand Down Expand Up @@ -172,7 +153,7 @@ const AttributionInformation: React.FC<Props> = ({
</FormHelperText>
)}
</FormGroup>
</FormFieldGroupExpandable>
</>
);
};

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import PathService from '@/components/PathService/PathService';
import { FormFieldGroupExpandable, FormFieldGroupHeader, FormGroup } from '@patternfly/react-core';
import { FormGroup } from '@patternfly/react-core';

interface Props {
reset?: boolean;
Expand All @@ -10,27 +10,16 @@ interface Props {

const FilePathInformation: React.FC<Props> = ({ reset, path, setFilePath }) => {
return (
<FormFieldGroupExpandable
isExpanded
toggleAriaLabel="Details"
header={
<FormFieldGroupHeader
titleText={{
text: (
<p>
Taxonomy Directory Path <span style={{ color: 'red' }}>*</span>
</p>
),
id: 'file-path-info-id'
}}
titleDescription="Specify the directory location within taxonomy repository structure for the QnA Yaml and Attribution files."
/>
}
>
<>
<h2>
<strong>Taxonomy Directory Path</strong> <span style={{ color: 'red' }}>*</span>
</h2>
<p>Specify the directory location within taxonomy repository structure for the QnA Yaml and Attribution files.</p>

<FormGroup isRequired key={'file-path-service-id'}>
<PathService reset={reset} rootPath="skills" path={path} handlePathChange={setFilePath} />
</FormGroup>
</FormFieldGroupExpandable>
</>
);
};

Expand Down
Loading
Loading