Searchs views for users, groups and courses
This commit is contained in:
@@ -24,7 +24,7 @@ const getName = async (key) => {
|
||||
}
|
||||
}
|
||||
|
||||
let UserName = ({ profileid }) => {
|
||||
let UserName = ({ profileid, hideIcon }) => {
|
||||
let [profile, setProfile] = useState({});
|
||||
const navigation = useNavigation();
|
||||
|
||||
@@ -47,7 +47,7 @@ let UserName = ({ profileid }) => {
|
||||
return (
|
||||
<Text onPress={onPress}>
|
||||
<Text style={{ paddingTop: 10 }}>
|
||||
<Icon name={icon} size={18} />
|
||||
{!hideIcon ? <Icon name={icon} size={18} /> : <></>}
|
||||
</Text>
|
||||
<Text> {profile.profile && profile.profile.firstName} {profile.profile && profile.profile.lastName}</Text>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user