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 || {});
|
||||
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',
|
||||
|
||||
Reference in New Issue
Block a user