-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2403 from prefeiturasp/feature/120418-alterar-mod…
…al-central-download feat(120418): Altera modal central de download e adiciona toast
- Loading branch information
Showing
2 changed files
with
70 additions
and
12 deletions.
There are no files selected for viewing
38 changes: 38 additions & 0 deletions
38
src/componentes/Globais/CentralDeDownloads/ModalConfirmarExclusaoArquivo.js
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,38 @@ | ||
import React from 'react'; | ||
import '../ModalAntDesign/modal-antdesign.scss'; | ||
import { Modal } from 'antd'; | ||
import IconeAvisoVermelho from "../../../assets/img/icone-modal-aviso-vermelho.svg" | ||
|
||
export const ModalConfirmarExclusaoArquivo = (props) => { | ||
return ( | ||
<div className="modal-ant-design"> | ||
<Modal | ||
open={props.open} | ||
onOk={props.onOk} | ||
okText={props.okText} | ||
okButtonProps={{className: "btn-base-vermelho"}} | ||
onCancel={props.onCancel} | ||
cancelText={props.cancelText} | ||
cancelButtonProps={{className: "btn-base-verde-outline"}} | ||
wrapClassName={'modal-ant-design'} | ||
> | ||
<div className="row"> | ||
<div className="col-md-auto col-lg-12"> | ||
<div className="text-center"> | ||
<img src={IconeAvisoVermelho} alt="" className="img-fluid"/> | ||
</div> | ||
</div> | ||
|
||
<div className="col-md-auto col-lg-12 mt-3"> | ||
<div className="text-center"> | ||
<p className="title-modal-antdesign-aviso">{props.titulo}</p> | ||
</div> | ||
<div className="text-center mt-2"> | ||
<p className="body-text-modal-antdesign-aviso">{props.bodyText}</p> | ||
</div> | ||
</div> | ||
</div> | ||
</Modal> | ||
</div> | ||
); | ||
}; |
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