-
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 #2400 from prefeiturasp/feature/29921-adiciona-car…
…ga-especificacoes-materiais-servicos feat(29921): Adiciona carga de especificações de serviços e materiais no painel da sme
- Loading branch information
Showing
5 changed files
with
63 additions
and
2 deletions.
There are no files selected for viewing
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
18 changes: 18 additions & 0 deletions
18
...sme/Parametrizacoes/Despesas/EspecificacoesMateriaisServicos/context/MateriaisServicos.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,18 @@ | ||
import React, { createContext, useMemo } from 'react'; | ||
|
||
export const MateriaisServicosContext = createContext({ | ||
}) | ||
|
||
export const MateriaisServicosProvider = ({children}) => { | ||
|
||
const contextValue = useMemo(() => { | ||
return { | ||
}; | ||
}, []); | ||
|
||
return ( | ||
<MateriaisServicosContext.Provider value={contextValue}> | ||
{children} | ||
</MateriaisServicosContext.Provider> | ||
) | ||
} |
25 changes: 25 additions & 0 deletions
25
src/componentes/sme/Parametrizacoes/Despesas/EspecificacoesMateriaisServicos/index.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,25 @@ | ||
import React from "react"; | ||
|
||
import {MateriaisServicosProvider} from "./context//MateriaisServicos"; | ||
import {PaginasContainer} from "../../../../../paginas/PaginasContainer"; | ||
import {MenuInterno} from "../../../../Globais/MenuInterno"; | ||
|
||
export const EspecificacoesMateriaisServicos = () => { | ||
const UrlsMenuInterno = [ | ||
{label: "Dados especificações de Materiais e Serviços", url: "parametro-especificacoes"}, | ||
{label: "Cargas de arquivo", url: "parametro-arquivos-de-carga", origem:'CARGA_MATERIAIS_SERVICOS'}, | ||
]; | ||
|
||
return ( | ||
<MateriaisServicosProvider> | ||
<PaginasContainer> | ||
<h1 className="titulo-itens-painel mt-5">Especificações de Materiais e Serviços</h1> | ||
<div className="page-content-inner"> | ||
<MenuInterno | ||
caminhos_menu_interno={UrlsMenuInterno} | ||
/> | ||
</div> | ||
</PaginasContainer> | ||
</MateriaisServicosProvider> | ||
) | ||
} |
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