diff --git a/bob_party/src/screens/GameChoice.tsx b/bob_party/src/screens/GameChoice.tsx index 38f7be5..c0b9f3d 100644 --- a/bob_party/src/screens/GameChoice.tsx +++ b/bob_party/src/screens/GameChoice.tsx @@ -39,117 +39,4 @@ function GameChoice(props: { navigation: any}) { } -function Button(props: { onPress: any; title?: any | undefined; }) { - const { onPress, title = 'Save' } = props; - return ( - - {title} - - ); -} - - -const styles = StyleSheet.create({ - body: { - flex: 1, - flexDirection: 'column', - alignItems: 'flex-start', - width: '70%', - }, - - container: { - flex: 1, - backgroundColor: "#45444E", - flexDirection: "column", - justifyContent: "flex-start", - alignItems: "center", - }, - button: { - alignItems: 'center', - justifyContent: 'center', - height: '30%', - width: '100%', - marginTop: '10%', - paddingVertical: 12, - paddingHorizontal: 32, - borderRadius: 10, - elevation: 3, - backgroundColor: '#0085FF', - }, - text: { - fontSize: 16, - lineHeight: 21, - fontWeight: 'bold', - letterSpacing: 0.25, - color: 'white', - }, - header: { - flex : 0.15, - width: '100%', - flexDirection: 'row', - backgroundColor: '#2D2C33', - alignItems: 'center', - justifyContent: 'space-around', - }, - titre: { - flex: 0.7, - flexDirection: 'column', - textAlign: 'center', - fontSize: 30, - fontFamily: 'Helvetica', - fontWeight: 'bold', - letterSpacing: 0.25, - color: 'white', - }, - engrenage: { - borderRadius: 50, - width: 50, - height: 50, - }, - avatar: { - borderRadius: 50, - width: 50, - height: 50, - }, - - footer: { - flex: 0.15, - flexDirection: 'row', - backgroundColor: '#2D2C33', - flexWrap: 'wrap', - width: '100%', - justifyContent: 'space-evenly', - }, - iconFooter: { - marginBottom: 25, - marginTop: 10, - width: 65, - height: 50, - }, - iconStore: { - marginBottom: 25, - marginTop: 10, - marginLeft: 7, - marginRight: 8, - width: 50, - height: 50, - }, - imageSkin : { - borderRadius: 15, - marginTop: 15, - marginRight: 15, - width: 100, - height: 100, - }, - nomSkin :{ - textAlign: 'center', - fontSize: 15, - fontFamily: 'Helvetica', - fontWeight: 'bold', - letterSpacing: 0.25, - color: 'white', - }, - -}); - export default GameChoice \ No newline at end of file diff --git a/bob_party/src/screens/SignUp.tsx b/bob_party/src/screens/SignUp.tsx index 88081ab..802f706 100644 --- a/bob_party/src/screens/SignUp.tsx +++ b/bob_party/src/screens/SignUp.tsx @@ -11,7 +11,6 @@ import { checkNewUserValidity } from '../core/Auth/newUser'; import DateTimePicker, { DateTimePickerEvent } from '@react-native-community/datetimepicker'; import RNPickerSelect from "react-native-picker-select"; import { PickerGreySmall } from '../components/PickerGreySmall'; -import { loginUser } from '../redux/features/currentUserSlice'; import { RootState } from '../redux/store'; import { updateImpossibleBirthDate, updateInvalidPassword, updateInvalidPseudo, updateTooLongPseudo, updateTooShortPassword, updateUndefinedBirthDate, updateUndefinedNationality, updateUndefinedPassword, updateUndefinedPseudo, updateUndefinedSex } from '../redux/features/credentialErrorsSlice'; import { getSystemErrorMap } from 'util';