Skip to content

Commit

Permalink
swapping the automatic documant upload with the manual upload. We ant…
Browse files Browse the repository at this point in the history
…icipate that this will be the main route of entry for most users

Signed-off-by: Ash Evans <ash.evans@ibm.com>
  • Loading branch information
aevo98765 committed Jul 25, 2024
1 parent 329e363 commit f3cee54
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/components/Contribute/Knowledge/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export const KnowledgeForm: React.FunctionComponent = () => {
const [success_alert_message, setSuccessAlertMessage] = useState<React.ReactNode>('');
const [successAlertLink, setSuccessAlertLink] = useState<string>('');

const [useFileUpload, setUseFileUpload] = useState(false);
const [useFileUpload, setUseFileUpload] = useState(true);
const [uploadedFiles, setUploadedFiles] = useState<File[]>([]);

const [isModalOpen, setIsModalOpen] = useState(false);
Expand Down Expand Up @@ -581,20 +581,20 @@ Creator names: ${creators}
>
<FormGroup>
<div style={{ display: 'flex', gap: '10px' }}>
<Button
variant={useFileUpload ? 'secondary' : 'primary'}
className={!useFileUpload ? 'button-active' : 'button-secondary'}
onClick={() => setUseFileUpload(false)}
>
Manually Enter Document Details
</Button>
<Button
variant={useFileUpload ? 'primary' : 'secondary'}
className={useFileUpload ? 'button-active' : 'button-secondary'}
onClick={() => setUseFileUpload(true)}
>
Automatically Upload Documents
</Button>
<Button
variant={useFileUpload ? 'secondary' : 'primary'}
className={!useFileUpload ? 'button-active' : 'button-secondary'}
onClick={() => setUseFileUpload(false)}
>
Manually Enter Document Details
</Button>
</div>
</FormGroup>

Expand Down

0 comments on commit f3cee54

Please sign in to comment.