ibnu
1 year ago
4 changed files with 36 additions and 20 deletions
@ -0,0 +1,23 @@
|
||||
import React from 'react'; |
||||
import { BASE_SIMPRO_LUMEN } from '../../../const/ApiConst'; |
||||
|
||||
const GanttFrame = React.memo((props) => { |
||||
const { versionGanttId, idProject, token, ro, timestamp } = props; |
||||
const iframeSrc = `https://adw-gantt.ospro.id/edit-mode/index.html?base_url=${BASE_SIMPRO_LUMEN}&gantt_id=${versionGanttId}&proyek_id=${idProject}&token=${token}&ro=${ro}×tamp=${timestamp}`; |
||||
|
||||
return ( |
||||
<iframe |
||||
id="frame-gantt" |
||||
src={iframeSrc} |
||||
style={{ |
||||
width: '100%', |
||||
height: '95vh', |
||||
}} |
||||
scrolling="no" |
||||
frameBorder="0" |
||||
allow="fullscreen" |
||||
></iframe> |
||||
); |
||||
}); |
||||
|
||||
export default GanttFrame; |
Loading…
Reference in new issue