|
@ -155,6 +155,7 @@ function componentBody(props) { |
|
|
// NOTE: This code is refered to our local SQLite solution. Revise this when implement rest API.
|
|
|
// NOTE: This code is refered to our local SQLite solution. Revise this when implement rest API.
|
|
|
const pictures = JSON.parse(props.pictures); |
|
|
const pictures = JSON.parse(props.pictures); |
|
|
const date = props.date ? props.date : "implementando..."; |
|
|
const date = props.date ? props.date : "implementando..."; |
|
|
|
|
|
const address = props.address ? props.address : "Erro ao carregar endereço" |
|
|
|
|
|
|
|
|
return ( |
|
|
return ( |
|
|
<View style={styles.bodyRow}> |
|
|
<View style={styles.bodyRow}> |
|
@ -167,7 +168,7 @@ function componentBody(props) { |
|
|
<View style={styles.bodyInfo}> |
|
|
<View style={styles.bodyInfo}> |
|
|
<Text style={styles.bodyTitle}>{props.title}</Text> |
|
|
<Text style={styles.bodyTitle}>{props.title}</Text> |
|
|
|
|
|
|
|
|
{iconTextRow({ name: "map-marker", description: "Rua Nassau, 158" })} |
|
|
|
|
|
|
|
|
{iconTextRow({ name: "map-marker", description: address })} |
|
|
{iconTextRow({ name: "calendar", description: date })} |
|
|
{iconTextRow({ name: "calendar", description: date })} |
|
|
{iconTextRow({ name: "account", description: "Usuário ativo" })} |
|
|
{iconTextRow({ name: "account", description: "Usuário ativo" })} |
|
|
{pictures.length > 0 && iconImageRow({ name: "camera", pic: pictures })} |
|
|
{pictures.length > 0 && iconImageRow({ name: "camera", pic: pictures })} |
|
|