BossBey File Manager
PHP:
8.2.30
OS:
Linux
User:
imagivibe
Root
/
home
/
imagivibe
/
www
/
wp-content
/
plugins
/
really-simple-ssl
/
settings
/
src
/
Modal
📤 Upload
📝 New File
📁 New Folder
Close
Editing: ModalControl.js
import useModal from "./ModalData"; /** * Button to open the modal * @param props * @returns {JSX.Element} * @constructor */ const ModalControl = (props) => { const {handleModal} = useModal(); const onClickHandler = () => { handleModal(true, props.modalData, props.item ); } return ( <button className={"button button-" + props.btnStyle} onClick={ (e) => onClickHandler(e) }>{props.btnText}</button> ) } export default ModalControl
Save
Cancel