-
Notifications
You must be signed in to change notification settings - Fork 56
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 #267 from paulogama/master
Visualizar Denúncia
- Loading branch information
Showing
24 changed files
with
594 additions
and
8 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
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,9 @@ | ||
import { createAction } from 'redux-actions'; | ||
|
||
export const BUSCAR_DENUNCIA_POR_ID = 'BUSCAR_DENUNCIA_POR_ID'; | ||
export const BUSCA_DENUNCIAS_POR_ID_SUCESSO = 'BUSCA_DENUNCIAS_POR_ID_SUCESSO'; | ||
export const DETALHES_DENUNCIA = 'DETALHES_DENUNCIA'; | ||
|
||
export const buscaDenunciaPorId = createAction(BUSCAR_DENUNCIA_POR_ID); | ||
export const buscaDenunciaPorIdSucesso = createAction(BUSCA_DENUNCIAS_POR_ID_SUCESSO); | ||
export const detalhesDenuncia = createAction(DETALHES_DENUNCIA); |
21 changes: 21 additions & 0 deletions
21
src/components/comum/camposVisualizarDenuncia/CamposVisualizarDenuncia.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,21 @@ | ||
import React from 'react'; | ||
import PropTypes from 'prop-types'; | ||
import './camposVisualizarDenuncia.css'; | ||
|
||
const CamposVisualizarDenuncia = ({ titulo, descricao }) => ( | ||
<div className="campos"> | ||
<div className="camposTitulo"> | ||
{titulo} | ||
</div> | ||
<div className="camposDescricao"> | ||
{descricao} | ||
</div> | ||
</div> | ||
); | ||
|
||
CamposVisualizarDenuncia.propTypes = { | ||
titulo: PropTypes.string.isRequired, | ||
descricao: PropTypes.string.isRequired | ||
}; | ||
|
||
export default CamposVisualizarDenuncia; |
27 changes: 27 additions & 0 deletions
27
src/components/comum/camposVisualizarDenuncia/camposVisualizarDenuncia.css
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 @@ | ||
.campos { | ||
padding-bottom: 19px; | ||
} | ||
|
||
.camposTitulo { | ||
color: #838383; | ||
font-family: Roboto; | ||
font-size: 16px; | ||
font-stretch: normal; | ||
font-style: normal; | ||
font-weight: normal; | ||
line-height: normal; | ||
letter-spacing: normal; | ||
text-align: left; | ||
} | ||
|
||
.camposDescricao { | ||
color: #1d1d1d; | ||
font-family: Roboto; | ||
font-size: 16px; | ||
font-stretch: normal; | ||
font-style: normal; | ||
font-weight: normal; | ||
letter-spacing: normal; | ||
line-height: normal; | ||
text-align: left; | ||
} |
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,41 @@ | ||
import React from 'react'; | ||
|
||
export default function Carregamento() { | ||
return ( | ||
<div className="preloader-wrapper big active carregamento"> | ||
<div className="spinner-layer spinner-green"> | ||
<div className="circle-clipper left"> | ||
<div className="circle" /> | ||
</div> | ||
<div className="gap-patch"> | ||
<div className="circle" /> | ||
</div> | ||
<div className="circle-clipper right"> | ||
<div className="circle" /> | ||
</div> | ||
</div> | ||
<div className="spinner-layer spinner-yellow"> | ||
<div className="circle-clipper left"> | ||
<div className="circle" /> | ||
</div> | ||
<div className="gap-patch"> | ||
<div className="circle" /> | ||
</div> | ||
<div className="circle-clipper right"> | ||
<div className="circle" /> | ||
</div> | ||
</div> | ||
<div className="spinner-layer spinner-red"> | ||
<div className="circle-clipper left"> | ||
<div className="circle" /> | ||
</div> | ||
<div className="gap-patch"> | ||
<div className="circle" /> | ||
</div> | ||
<div className="circle-clipper right"> | ||
<div className="circle" /> | ||
</div> | ||
</div> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
.carregamento { | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
} |
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,49 @@ | ||
import React from 'react'; | ||
import PropTypes from 'prop-types'; | ||
|
||
import SeparadorPontilhado from '../separadorPontilhado/SeparadorPontilhado'; | ||
import CamposVisualizarDenuncia from '../camposVisualizarDenuncia/CamposVisualizarDenuncia'; | ||
import './gradeCampos.css'; | ||
|
||
const GradeCampos = ({ dados }) => ( | ||
<div> | ||
<div className="titulo-detalhes"> | ||
{dados.titulo} | ||
</div> | ||
<SeparadorPontilhado /> | ||
<div className="grade"> | ||
<div className="campos-esquerda"> | ||
{dados.camposEsquerda.map((campoEsquerda, index) => ( | ||
<CamposVisualizarDenuncia | ||
key={index} | ||
titulo={campoEsquerda.titulo} | ||
descricao={campoEsquerda.descricao} | ||
/> | ||
))} | ||
</div> | ||
<div> | ||
{dados.camposDireita.map((campoDireita, index) => ( | ||
<CamposVisualizarDenuncia | ||
key={index} | ||
titulo={campoDireita.titulo} | ||
descricao={campoDireita.descricao} | ||
/> | ||
))} | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
|
||
GradeCampos.propTypes = { | ||
dados: PropTypes.shape({ | ||
titulo: PropTypes.string, | ||
camposEsquerda: PropTypes.array, | ||
camposDireita: PropTypes.array | ||
}) | ||
}; | ||
|
||
GradeCampos.defaultProps = { | ||
dados: undefined | ||
}; | ||
|
||
export default GradeCampos; |
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,17 @@ | ||
.grade { | ||
display: flex; | ||
padding-top: 11px; | ||
} | ||
|
||
.titulo-detalhes { | ||
color: #1d1d1d; | ||
font-family: Roboto; | ||
font-size: 18px; | ||
font-stretch: normal; | ||
font-style: normal; | ||
font-weight: normal; | ||
letter-spacing: normal; | ||
line-height: normal; | ||
padding-bottom: 18px; | ||
text-align: left; | ||
} |
8 changes: 8 additions & 0 deletions
8
src/components/comum/separadorPontilhado/SeparadorPontilhado.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 React from 'react'; | ||
import './separadorPontilhado.css'; | ||
|
||
const SeparadorPontilhado = () => ( | ||
<div className="separador" /> | ||
); | ||
|
||
export default SeparadorPontilhado; |
4 changes: 4 additions & 0 deletions
4
src/components/comum/separadorPontilhado/separadorPontilhado.css
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,4 @@ | ||
.separador { | ||
height: 2px; | ||
border: dashed 2px #f0f0f0 | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -178,4 +178,3 @@ | |
text-align: left; | ||
color: #1d1d1d; | ||
} | ||
|
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
Oops, something went wrong.