Same
This commit is contained in:
@@ -27,7 +27,7 @@ const getName = async (key) => {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let CourseCard = ({ profileid, hideIcon, profileObj }) => {
|
let CourseCard = ({ profileid, hideIcon, profileObj, twoCols }) => {
|
||||||
let [profile, setProfile] = useState(profileObj || {});
|
let [profile, setProfile] = useState(profileObj || {});
|
||||||
const navigation = useNavigation();
|
const navigation = useNavigation();
|
||||||
|
|
||||||
@@ -57,7 +57,7 @@ let CourseCard = ({ profileid, hideIcon, profileObj }) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Card style={styles.content}>
|
<Card style={twoCols ? styles.contentCols : styles.content}>
|
||||||
<Card.Content>
|
<Card.Content>
|
||||||
<Title onPress={onPress} numberOfLines={2}>
|
<Title onPress={onPress} numberOfLines={2}>
|
||||||
<Text style={{ paddingTop: 10 }}>
|
<Text style={{ paddingTop: 10 }}>
|
||||||
@@ -104,6 +104,10 @@ const styles = StyleSheet.create({
|
|||||||
margin: 4,
|
margin: 4,
|
||||||
width: 250,
|
width: 250,
|
||||||
},
|
},
|
||||||
|
contentCols: {
|
||||||
|
margin: 4,
|
||||||
|
width: "48%",
|
||||||
|
},
|
||||||
centerItems: {
|
centerItems: {
|
||||||
justifyContent: 'center',
|
justifyContent: 'center',
|
||||||
alignItems: 'center',
|
alignItems: 'center',
|
||||||
|
|||||||
Reference in New Issue
Block a user