|
|
|
@ -9,8 +9,15 @@ type ListProps = {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export default function ListWithoutSelect(props: ListProps) {
|
|
|
|
|
const [selected, setSelected] = React.useState([]);
|
|
|
|
|
const { colors } = useContext(ColorContext);
|
|
|
|
|
|
|
|
|
|
let listContent = []
|
|
|
|
|
|
|
|
|
|
props.content.forEach((val) => {
|
|
|
|
|
listContent.push({value: val.value, disabled: true})
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
const styles = StyleSheet.create({
|
|
|
|
|
titleBar: {
|
|
|
|
|
flexDirection: "row",
|
|
|
|
@ -58,6 +65,7 @@ export default function ListWithoutSelect(props: ListProps) {
|
|
|
|
|
width: "100%",
|
|
|
|
|
minWidth: 250,
|
|
|
|
|
maxWidth: 250,
|
|
|
|
|
backgroundColor: colors.cardElementBackground,
|
|
|
|
|
},
|
|
|
|
|
itemText: {
|
|
|
|
|
fontSize: 13,
|
|
|
|
@ -71,12 +79,14 @@ export default function ListWithoutSelect(props: ListProps) {
|
|
|
|
|
box: {
|
|
|
|
|
borderWidth: 0,
|
|
|
|
|
flex: 0,
|
|
|
|
|
backgroundColor: colors.cardElementBackground,
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
return (
|
|
|
|
|
<MultipleSelectList
|
|
|
|
|
data={props.content}
|
|
|
|
|
setSelected={(val) => setSelected(val)}
|
|
|
|
|
data={listContent}
|
|
|
|
|
save="value"
|
|
|
|
|
search={false}
|
|
|
|
|
arrowicon={<Image source={require("../assets/images/arrow.png")} style={styles.arrow}></Image>}
|
|
|
|
@ -84,8 +94,11 @@ export default function ListWithoutSelect(props: ListProps) {
|
|
|
|
|
inputStyles={styles.title}
|
|
|
|
|
dropdownStyles={styles.itemList}
|
|
|
|
|
dropdownItemStyles={styles.itemCell}
|
|
|
|
|
disabledItemStyles={styles.itemCell}
|
|
|
|
|
dropdownTextStyles={styles.itemText}
|
|
|
|
|
disabledTextStyles={styles.itemText}
|
|
|
|
|
checkBoxStyles={styles.box}
|
|
|
|
|
disabledCheckBoxStyles={styles.box}
|
|
|
|
|
notFoundText="None"
|
|
|
|
|
placeholder={props.title}
|
|
|
|
|
label={props.title}/>
|
|
|
|
|