-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
visualizar anexos, sem precisar baixar
- Loading branch information
1 parent
2976a12
commit 49df9e3
Showing
3 changed files
with
55 additions
and
24 deletions.
There are no files selected for viewing
26 changes: 26 additions & 0 deletions
26
src/Pages/Classroom/ClassroomOne/MeetingList/Meeting/ModalFiles/index.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import { Galleria } from "primereact/galleria"; | ||
import { MeetingArc } from "../../../../../../Context/Classroom/Meeting/MeetingListRegistration/type"; | ||
import { Dialog } from "primereact/dialog"; | ||
import { Padding } from "../../../../../../Styles/styles"; | ||
|
||
const ModalFiles = ({ item, onHide, visible, index }: { item: MeetingArc[], visible: boolean, onHide: () => void, index: number }) => { | ||
|
||
|
||
|
||
const itemTemplate = (item: MeetingArc) => { | ||
return <img src={item.archive_url} alt={item.original_name} style={{ width: '100%', display: 'block' }} />; | ||
}; | ||
|
||
return ( | ||
<Dialog onHide={onHide} visible={visible} header="Evidências do encontro" > | ||
<Padding> | ||
|
||
<div className="card"> | ||
<Galleria value={item} style={{ maxWidth: '640px', maxHeight: "" }} showThumbnails={false} showIndicators activeIndex={index} item={itemTemplate} /> | ||
</div> | ||
</Padding> | ||
</Dialog> | ||
) | ||
} | ||
|
||
export default ModalFiles |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters