-
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 #2407 from prefeiturasp/feature/33155-parametrizac…
…oes-repasse-parte-2 feat(33155): Parametrizacoes repasse
- Loading branch information
Showing
6 changed files
with
90 additions
and
40 deletions.
There are no files selected for viewing
8 changes: 8 additions & 0 deletions
8
src/componentes/sme/Parametrizacoes/Receitas/ParametrizacoesRepasses/YupSchemaRepasse.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,8 @@ | ||
import * as yup from "yup"; | ||
|
||
export const YupSchemaRepasse = yup.object().shape({ | ||
associacao: yup.string().required("Unidade é obrigatório."), | ||
conta_associacao: yup.string().required("Conta é obrigatório."), | ||
acao_associacao: yup.string().required("Ação é obrigatório."), | ||
periodo: yup.string().required("Período é obrigatório."), | ||
}); |
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
27 changes: 27 additions & 0 deletions
27
...e/Parametrizacoes/Receitas/ParametrizacoesRepasses/components/ModalConfirmacaoExclusao.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,27 @@ | ||
import React, { useContext } from "react"; | ||
import { ModalBootstrap } from "../../../../../Globais/ModalBootstrap"; | ||
import { RepassesContext } from "../context/Repasse"; | ||
|
||
export const ModalConfirmacaoExclusao = ({handleExcluirRepasse}) => { | ||
|
||
const {showModalConfirmacaoExclusao, setShowModalConfirmacaoExclusao, stateFormModal} = useContext(RepassesContext) | ||
|
||
return( | ||
<ModalBootstrap | ||
show={showModalConfirmacaoExclusao} | ||
onHide={setShowModalConfirmacaoExclusao} | ||
titulo="Excluir repasse" | ||
bodyText="Deseja realmente excluir esse repasse?" | ||
primeiroBotaoOnclick={() => setShowModalConfirmacaoExclusao(false)} | ||
primeiroBotaoTexto="Voltar" | ||
primeiroBotaoCss="outline-success" | ||
segundoBotaoOnclick={()=> { | ||
setShowModalConfirmacaoExclusao(false) | ||
handleExcluirRepasse(stateFormModal.uuid) | ||
}} | ||
segundoBotaoCss="danger" | ||
segundoBotaoTexto="Excluir" | ||
/> | ||
) | ||
|
||
} |
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
20 changes: 0 additions & 20 deletions
20
.../sme/Parametrizacoes/Receitas/ParametrizacoesRepasses/hooks/useGetUnidadesAutoComplete.js
This file was deleted.
Oops, something went wrong.