Skip to content

Commit

Permalink
finishing notht the skill and knowledge sections and cleaning up imports
Browse files Browse the repository at this point in the history
Signed-off-by: Ash Evans <[email protected]>
  • Loading branch information
aevo98765 committed Nov 6, 2024
1 parent 91a6175 commit 51991ec
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions src/components/Contribute/Knowledge/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,6 @@ import { Button } from '@patternfly/react-core/dist/esm/components/Button/Button
import { useRouter } from 'next/navigation';
import { autoFillKnowledgeFields } from './AutoFill';
import { Spinner } from '@patternfly/react-core/dist/esm/components/Spinner';

import UploadIcon from '@patternfly/react-icons/dist/esm/icons/upload-icon';
import YamlFileUpload from '../YamlFileUpload';

export interface QuestionAndAnswerPair {
Expand Down Expand Up @@ -508,8 +506,9 @@ export const KnowledgeForm: React.FunctionComponent<KnowledgeFormProps> = ({ kno
Auto-Fill
</Button>
)}
<YamlFileUpload isKnowledgeForm={true} onYamlUploadKnowledgeFillForm={onYamlUploadKnowledgeFillForm} />
<Form className="form-k">
<YamlFileUpload isKnowledgeForm={true} onYamlUploadKnowledgeFillForm={onYamlUploadKnowledgeFillForm} />

<AuthorInformation
formType={FormType.Knowledge}
reset={reset}
Expand Down
2 changes: 1 addition & 1 deletion src/components/Contribute/Skill/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -388,9 +388,9 @@ export const SkillForm: React.FunctionComponent<SkillFormProps> = ({ skillEditFo
Auto-Fill
</Button>
)}
<YamlFileUpload isKnowledgeForm={false} onYamlUploadSkillsFillForm={onYamlUploadSkillsFillForm} />

<Form className="form-s">
<YamlFileUpload isKnowledgeForm={false} onYamlUploadSkillsFillForm={onYamlUploadSkillsFillForm} />
<AuthorInformation
formType={FormType.Knowledge}
reset={reset}
Expand Down
2 changes: 1 addition & 1 deletion src/components/Contribute/YamlFileUpload.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import { FileUpload } from '@patternfly/react-core/dist/dynamic/components/FileUpload';
import { Form, FormFieldGroupExpandable, FormFieldGroupHeader } from '@patternfly/react-core/dist/dynamic/components/Form';
import { FormFieldGroupExpandable, FormFieldGroupHeader } from '@patternfly/react-core/dist/dynamic/components/Form';
import { FormGroup } from '@patternfly/react-core/dist/dynamic/components/Form';
import { FormHelperText } from '@patternfly/react-core/dist/dynamic/components/Form';
import { HelperText } from '@patternfly/react-core/dist/dynamic/components/HelperText';
Expand Down

0 comments on commit 51991ec

Please sign in to comment.