Skip to content

Commit c8ce839

Browse files
committed
remove status that is not being used
1 parent 90d90d0 commit c8ce839

File tree

1 file changed

+21
-26
lines changed

1 file changed

+21
-26
lines changed

src/compounds/ActionsGroup/actions/ViewFiles.jsx

Lines changed: 21 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ const ViewFiles = ({ initialFiles, handleClose, show }) => {
2121
// - comment back in the following 2 lines & above imports once posting messages/attachments is working
2222
// const fileRef = useRef(null)
2323
// const [files, setFiles] = useState([])
24+
2425
const documentTabs = [
2526
{
2627
eventKey: 'files',
@@ -32,12 +33,6 @@ const ViewFiles = ({ initialFiles, handleClose, show }) => {
3233
title: 'Status Updates',
3334
status: 'Status Update',
3435
},
35-
{
36-
eventKey: 'payment-status-files',
37-
title: 'Payment Status Files',
38-
// TODO(@summer-cook): fill this in when Sherman adds a file of this type
39-
status: 'TODO:FILL THIS IN',
40-
},
4136
]
4237

4338
// TODO(summercook):
@@ -78,33 +73,33 @@ const ViewFiles = ({ initialFiles, handleClose, show }) => {
7873
{/* <Form>
7974
<h6 className='mt-3'>Upload Additional Documents</h6>
8075
<InputGroup controlId='attachments' className='mb-3'>
81-
<Form.Control
82-
multiple
83-
type='file'
84-
onChange={handleAddFile}
85-
ref={fileRef}
86-
/>
87-
<Button
88-
variant='outline-primary'
89-
onClick={handleSubmit}
90-
type='submit'
91-
>
92-
<FontAwesomeIcon icon='fa-upload' />
93-
</Button>
76+
<Form.Control
77+
multiple
78+
type='file'
79+
onChange={handleAddFile}
80+
ref={fileRef}
81+
/>
82+
<Button
83+
variant='outline-primary'
84+
onClick={handleSubmit}
85+
type='submit'
86+
>
87+
<FontAwesomeIcon icon='fa-upload' />
88+
</Button>
9489
</InputGroup>
95-
</Form>
96-
<ListGroup variant='flush'>
90+
</Form>
91+
<ListGroup variant='flush'>
9792
{files.map((file) => {
9893
const fileName = Object.keys(file)[0]
9994
10095
return (
10196
<ListGroup.Item key={fileName} className='d-flex align-items-center'>
102-
<span>{fileName}</span>
103-
<CloseButton onClick={() => handleDeleteFile(file)} className='ms-auto' />
97+
<span>{fileName}</span>
98+
<CloseButton onClick={() => handleDeleteFile(file)} className='ms-auto' />
10499
</ListGroup.Item>
105-
)
106-
})}
107-
</ListGroup> */}
100+
)
101+
})}
102+
</ListGroup> */}
108103
<Tabs defaultActiveKey='files' id='document-tabs'>
109104
{documentTabs && documentTabs.map((tab) => {
110105
const { eventKey, title, status } = tab

0 commit comments

Comments
 (0)