This commit is contained in:
Adolfo Reyna
2023-03-10 19:41:37 -06:00
parent eae0992ccb
commit f2a0545f48

View File

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