Fix groups visual issues

This commit is contained in:
Adolfo Reyna
2023-01-22 21:43:06 -05:00
parent 749444a2a0
commit 9b20377f87
2 changed files with 10 additions and 5 deletions

View File

@@ -4,6 +4,7 @@ import Icon from 'react-native-vector-icons/MaterialIcons';
import API from './../API.js';
import { useNavigation } from '@react-navigation/native';
import AsyncStorage from '@react-native-async-storage/async-storage';
import { IconButton } from 'react-native-paper';
const storeName = async (key, value) => {
try {
@@ -48,6 +49,7 @@ let UserName = ({ profileid, hideIcon }) => {
let icon = profile._id ? (!profile.isGroup ? "person-outline" : "group") : '';
icon = icon === "person-outline" && profile.subscription && profile.subscription > (new Date() - 0) ? "assignment-ind" : icon;
icon = icon === "group" && profile.isCourse ? "subscriptions" : icon;
icon = icon === "group" && profile.isPrivate ? "screen-lock-portrait" : icon;
const onPress = () => {
return navigation.navigate('Profile', { profileid })