diff --git a/src/components/Lists/CardList/CardListItem.js b/src/components/Lists/CardList/CardListItem.js index 2a7c04b..37c9fad 100644 --- a/src/components/Lists/CardList/CardListItem.js +++ b/src/components/Lists/CardList/CardListItem.js @@ -26,7 +26,6 @@ export default class CardListItem extends React.Component { style={{ width: props.width, margin: 5, - elevation: 3, }} onPress={item.onPress} > diff --git a/src/navigation/MainTabNavigator.js b/src/navigation/MainTabNavigator.js index eed5f81..a1cbc20 100644 --- a/src/navigation/MainTabNavigator.js +++ b/src/navigation/MainTabNavigator.js @@ -36,7 +36,6 @@ import ClubListScreen from "../screens/Amicale/Clubs/ClubListScreen"; import ClubAboutScreen from "../screens/Amicale/Clubs/ClubAboutScreen"; import VoteScreen from "../screens/Amicale/VoteScreen"; import AmicaleContactScreen from "../screens/Amicale/AmicaleContactScreen"; -import AmicaleHomeScreen from "../screens/Amicale/AmicaleHomeScreen"; import WebsitesHomeScreen from "../screens/Services/ServicesScreen"; import ServicesSectionScreen from "../screens/Services/ServicesSectionScreen"; @@ -95,6 +94,12 @@ function ServicesStackComponent() { {createScreenCollapsibleStack("index", ServicesStack, WebsitesHomeScreen, i18n.t('screens.services'))} {createScreenCollapsibleStack("services-section", ServicesStack, ServicesSectionScreen, "SECTION")} + {/* INSA */} + {getWebsiteStack("available-rooms", ServicesStack, AvailableRoomScreen, i18n.t('screens.availableRooms'))} + {getWebsiteStack("bib", ServicesStack, BibScreen, i18n.t('screens.bib'))} + {createScreenCollapsibleStack("self-menu", ServicesStack, SelfMenuScreen, i18n.t('screens.menuSelf'))} + + {/* STUDENTS */} {createScreenCollapsibleStack("proximo", ServicesStack, ProximoMainScreen, "Proximo")} {createScreenCollapsibleStack( "proximo-list", @@ -112,17 +117,46 @@ function ServicesStackComponent() { ...modalTransition, }} /> - - {getWebsiteStack("available-rooms", ServicesStack, AvailableRoomScreen, i18n.t('screens.availableRooms'))} - {getWebsiteStack("bib", ServicesStack, BibScreen, i18n.t('screens.bib'))} - {createScreenCollapsibleStack("self-menu", ServicesStack, SelfMenuScreen, i18n.t('screens.menuSelf'))} - {getWebsiteStack("amicale-website", ServicesStack, AmicaleWebsiteScreen, "Amicale")} {getWebsiteStack("elus-etudiants", ServicesStack, ElusEtudiantsWebsiteScreen, "Élus Étudiants")} {getWebsiteStack("wiketud", ServicesStack, WiketudWebsiteScreen, "Wiketud")} {getWebsiteStack("tutorinsa", ServicesStack, TutorInsaWebsiteScreen, "Tutor'INSA")} {getWebsiteStack("ent", ServicesStack, ENTWebsiteScreen, "ENT INSA")} {getWebsiteStack("bluemind", ServicesStack, BlueMindWebsiteScreen, "BlueMind")} + + + {/* AMICALE */} + + {createScreenCollapsibleStack("profile", ServicesStack, ProfileScreen, i18n.t('screens.profile'))} + {createScreenCollapsibleStack("club-list", ServicesStack, ClubListScreen, i18n.t('clubs.clubList'))} + + + ); } @@ -248,37 +282,6 @@ function HomeStackComponent(initialRoute: string | null, defaultData: { [key: st title: i18n.t('screens.login'), }} /> - {createScreenCollapsibleStack("profile", HomeStack, ProfileScreen, i18n.t('screens.profile'))} - {createScreenCollapsibleStack("club-list", HomeStack, ClubListScreen, i18n.t('clubs.clubList'))} - - - - ); } diff --git a/src/screens/Services/ServicesScreen.js b/src/screens/Services/ServicesScreen.js index 838aea8..70289ef 100644 --- a/src/screens/Services/ServicesScreen.js +++ b/src/screens/Services/ServicesScreen.js @@ -7,8 +7,8 @@ import CustomTabBar from "../../components/Tabbar/CustomTabBar"; import {withCollapsible} from "../../utils/withCollapsible"; import {Collapsible} from "react-navigation-collapsible"; import {CommonActions} from "@react-navigation/native"; -import {Animated} from "react-native"; -import {Avatar, Card, List} from "react-native-paper"; +import {Animated, View} from "react-native"; +import {Avatar, Card, List, TouchableRipple} from "react-native-paper"; type Props = { navigation: Object, @@ -36,6 +36,7 @@ type listItem = { class ServicesScreen extends React.Component { + amicaleDataset: cardList; studentsDataset: cardList; insaDataset: cardList; @@ -44,6 +45,38 @@ class ServicesScreen extends React.Component { constructor(props) { super(props); const nav = props.navigation; + this.amicaleDataset = [ + { + title: "AMICALE", + subtitle: "AMICALE", + image: AMICALE_IMAGE, + onPress: () => nav.navigate("amicale-website"), + }, + { + title: "CLUBS", + subtitle: "CLUB LIST", + image: AMICALE_IMAGE, + onPress: () => nav.navigate("club-list"), + }, + { + title: "PROFIL", + subtitle: "PROFIL", + image: AMICALE_IMAGE, + onPress: () => nav.navigate("profile"), + }, + { + title: "CONTACT", + subtitle: "CONTACT", + image: AMICALE_IMAGE, + onPress: () => nav.navigate("amicale-contact"), + }, + { + title: "ELECTIONS", + subtitle: "ELECTIONS", + image: AMICALE_IMAGE, + onPress: () => nav.navigate("vote"), + }, + ]; this.studentsDataset = [ { title: "proximo", @@ -111,13 +144,19 @@ class ServicesScreen extends React.Component { this.finalDataset = [ { title: "AMICALE", - description: "youhou", + description: "LOGIN", + image: AMICALE_IMAGE, + content: this.amicaleDataset + }, + { + title: "STUDENTS", + description: "SERVICES OFFERED BY STUDENTS", image: AMICALE_IMAGE, content: this.studentsDataset }, { title: "INSA", - description: "youhou", + description: "SERVICES OFFERED BY INSA", image: AMICALE_IMAGE, content: this.insaDataset }, @@ -151,23 +190,25 @@ class ServicesScreen extends React.Component { renderItem = ({item}: { item: listItem }) => { return ( - this.props.navigation.navigate("services-section", {data: item})} > - this.getAvatar(props, item.image)} - right={(props) => } - /> - - + + this.getAvatar(props, item.image)} + right={(props) => } + /> + + + ); };