diff --git a/bob_party/src/components/ConversationComponent.tsx b/bob_party/src/components/ConversationComponent.tsx deleted file mode 100644 index 4e99e0e..0000000 --- a/bob_party/src/components/ConversationComponent.tsx +++ /dev/null @@ -1,44 +0,0 @@ -import { FC, ReactNode } from "react" -import { Pressable, Image, ImageStyle, Text, View, Alert, ImageSourcePropType, TextStyle } from "react-native" -import React from "react" -import { Skin } from "../core/skin" -import { Conversation } from "../core/conversation" - -/* - Importing the correct stylesheet -*/ -import styles from "./style/ConverstationComponent.style" -import { SkinComponent } from "./Skin" - -export const ConversationComponent : -/* Parameters : - * skin : Skin to be displayed - * state : Indicates from wich screen the component has been called -*/ -FC<{conv: Conversation, state: String, navigation: any}> = -({conv, state, navigation}) => -{ - /* The display of this component depends of the screen from where it has been called: - * From the TopBar (icon) : Small image in a circle - * From the shop (shop) : Image + Name + Price, Pressable => Buy the skin - * From the profile (profile) : Name + Image, Pressable => Change the skin - */ - - - switch (state) { - case 'Preview': - return( - - - - - - {conv.getLastMessage().getMessageSender().getUsername()} - {conv.getLastMessage().getMessageContent()} - - - ) - default: - break; - } -} \ No newline at end of file diff --git a/bob_party/src/components/style/ConverstationComponent.style.js b/bob_party/src/components/style/ConverstationComponent.style.js deleted file mode 100644 index cafb0b3..0000000 --- a/bob_party/src/components/style/ConverstationComponent.style.js +++ /dev/null @@ -1,15 +0,0 @@ -import { StyleSheet } from "react-native"; - -export default StyleSheet.create({ - textNom: { - fontSize: 20, - fontWeight: 'bold', - letterSpacing: 0.25, - color: 'white', - }, - textMess: { - fontSize: 15, - letterSpacing: 0.25, - color: '#D9D9D9', - } -}); \ No newline at end of file