diff --git a/bob_party/App.tsx b/bob_party/App.tsx
index f1247cb..d84f013 100644
--- a/bob_party/App.tsx
+++ b/bob_party/App.tsx
@@ -8,7 +8,6 @@ import React, { useCallback } from 'react';
import { useUserStore } from './userContext';
-
export const MANAGER_USER = new ManagerUser(new LoaderUserApi, new FakeSaverUser);
@@ -52,5 +51,4 @@ export const MANAGER_USER = new ManagerUser(new LoaderUserApi, new FakeSaverUser
);
}
-
-
+
diff --git a/bob_party/src/screens/Chat.tsx b/bob_party/src/screens/Chat.tsx
index 4c3cabd..2d243d1 100644
--- a/bob_party/src/screens/Chat.tsx
+++ b/bob_party/src/screens/Chat.tsx
@@ -6,9 +6,6 @@ import { TopBar } from '../components/TopBar';
import { BotBar } from '../components/BotBar';
import { FlatList } from 'react-native-gesture-handler';
import { ConversationComponent } from '../components/ConversationComponent';
-import { useSelector } from 'react-redux';
-import { RootState } from '../redux/store';
-import { MANAGER_USER } from '../../App';
function Chat(props: { navigation: any; }) {
const { navigation } = props
@@ -20,7 +17,8 @@ function Chat(props: { navigation: any; }) {
nav={navigation}
/>
- {/*
+
+ {/*
}
diff --git a/bob_party/src/screens/Profile.tsx b/bob_party/src/screens/Profile.tsx
index db307b9..6372fed 100644
--- a/bob_party/src/screens/Profile.tsx
+++ b/bob_party/src/screens/Profile.tsx
@@ -8,8 +8,6 @@ import { BotBar } from '../components/BotBar';
import { SkinComponent } from '../components/Skin';
import { ButtonGreySmall } from '../components/ButtonGreySmall';
import { ScreenIndicator } from '../components/ScreenIndicator';
-import { useSelector } from 'react-redux';
-import { RootState } from '../redux/store';
import { MANAGER_USER } from '../../App';
const coin = require('../../assets/Icons/Coin.png')
@@ -42,6 +40,7 @@ function Profile(props: { navigation: any; }) {
Total de BobCoin gagnés: {MANAGER_USER.getCurrentUser().getTotalCoins()}
+ Total de BobCoin gagnés:
-
);
}
diff --git a/bob_party/src/screens/SignIn.tsx b/bob_party/src/screens/SignIn.tsx
index 2d7b052..0bc0db3 100644
--- a/bob_party/src/screens/SignIn.tsx
+++ b/bob_party/src/screens/SignIn.tsx
@@ -20,8 +20,6 @@ function SignIn(props: { navigation: any; }) {
const setUser = useUserStore((state) => state.setUser);
const errorList = useSelector((state: RootState) => state.credentialErrors.loginErrorList);
-
-
const [pseudo, setPseudo] = useState('');
const [password, setPassword] = useState('');
const dispatch=useDispatch();
@@ -32,7 +30,6 @@ function SignIn(props: { navigation: any; }) {
}
-
const handleUserConnect = useCallback(async (pseudo: string, password: string) => {
const us =await MANAGER_USER.getLoaderUser().loadByUsernamePassword(pseudo, password).then((res) => {
@@ -52,17 +49,16 @@ function SignIn(props: { navigation: any; }) {
return (
-
setPseudo(val)} autoCapitalize='none' />
setPassword(val)} autoCapitalize='none' secureTextEntry={true}/>
handleUserConnect(pseudo, password)}>
Se connecter
-
navigation.navigate('SignUp')}>
Pas de compte? Inscrivez vous !
+ {/*
Ce pseudo n'exsite pas
dispatch(updateIncorrectCredentials(false))} />
@@ -71,6 +67,7 @@ function SignIn(props: { navigation: any; }) {
Mot de passe incorrect
dispatch(updateIncorrectCredentials(false))} />
+*/}
);
diff --git a/bob_party/src/screens/Store.tsx b/bob_party/src/screens/Store.tsx
index 50c0478..8f0ab85 100644
--- a/bob_party/src/screens/Store.tsx
+++ b/bob_party/src/screens/Store.tsx
@@ -7,8 +7,6 @@ import { BotBar } from '../components/BotBar';
import { FlatList } from 'react-native-gesture-handler';
import { SkinComponent } from '../components/Skin';
import { ScreenIndicator } from '../components/ScreenIndicator';
-import { useSelector } from 'react-redux';
-import { RootState } from '../redux/store';
import { MANAGER_USER } from '../../App';
function Store(props: { navigation: any; }) {
diff --git a/bob_party/yarn.lock b/bob_party/yarn.lock
index 2661f0f..3b95452 100644
--- a/bob_party/yarn.lock
+++ b/bob_party/yarn.lock
@@ -6719,7 +6719,7 @@ react-native-date-picker@^4.2.5:
react-native-dialog-input@^1.0.8:
version "1.0.8"
- resolved "https://registry.npmjs.org/react-native-dialog-input/-/react-native-dialog-input-1.0.8.tgz"
+ resolved "https://registry.yarnpkg.com/react-native-dialog-input/-/react-native-dialog-input-1.0.8.tgz#6813d3b158bbb85d83a94310f38695d9f2b02682"
integrity sha512-W9YNMt6r+rUUMDEkOR1WMuGfSJw97ujB8H1xp8TjJTOnYVSlsf4aEP6t+J8tVk3XZaDcTawXgDjxH6E1WVWRog==
react-native-dialog@^9.2.2: