Adding work item details to activity
This commit is contained in:
30
mobile/src/ui/FormStaticPhotoPanel.js
Normal file
30
mobile/src/ui/FormStaticPhotoPanel.js
Normal file
@@ -0,0 +1,30 @@
|
||||
import React from "react"
|
||||
import PropTypes from "prop-types"
|
||||
import { Text, View, Platform } from "react-native"
|
||||
import { PhotoPanel } from "."
|
||||
|
||||
export class FormStaticPhotoPanel extends React.Component {
|
||||
static propTypes = {
|
||||
label: PropTypes.string,
|
||||
value: PropTypes.arrayOf(PropTypes.string),
|
||||
}
|
||||
|
||||
render() {
|
||||
const { label, value, options } = this.props
|
||||
|
||||
return (
|
||||
<View style={{ width: "100%" }}>
|
||||
<Text
|
||||
style={{
|
||||
color: "black",
|
||||
fontSize: 14,
|
||||
marginBottom: 5,
|
||||
}}>
|
||||
{label}
|
||||
</Text>
|
||||
<PhotoPanel value={value} readOnly />
|
||||
<Text> </Text>
|
||||
</View>
|
||||
)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user