From a9f5b4754453d20bc15710cb50cb69cc1090cbdb Mon Sep 17 00:00:00 2001 From: alguilhot Date: Sat, 15 Oct 2022 18:32:38 +0200 Subject: [PATCH] DEL: Clean des imports dans les screens --- bob_party/src/screens/Chat.tsx | 6 +----- bob_party/src/screens/Home.tsx | 7 ++----- bob_party/src/screens/Profile.tsx | 10 ++-------- bob_party/src/screens/Settings.tsx | 2 +- bob_party/src/screens/Store.tsx | 10 ++-------- 5 files changed, 8 insertions(+), 27 deletions(-) diff --git a/bob_party/src/screens/Chat.tsx b/bob_party/src/screens/Chat.tsx index 6e0a7a1..566a9df 100644 --- a/bob_party/src/screens/Chat.tsx +++ b/bob_party/src/screens/Chat.tsx @@ -1,15 +1,11 @@ import { StatusBar } from 'expo-status-bar' -import { StyleSheet, View, Text, Alert, Pressable, Image} from 'react-native' +import { StyleSheet, View, Text} from 'react-native' import React from 'react'; import { Skin } from '../core/skin'; import { TopBar } from '../components/TopBar'; import { BotBar } from '../components/BotBar'; const skinTest= new Skin("Bob",require('../../assets/Icons/BobClassic.png')); -const engrenage = require('../../assets/Icons/UnSelected/Cogs.png'); -const gamepad = require('../../assets/Icons/UnSelected/Gamepad.png'); -const message = require('../../assets/Icons/Selected/SChat.png'); -const store = require('../../assets/Icons/UnSelected/Store.png'); function Chat(props: { navigation: any; }) { const { navigation } = props diff --git a/bob_party/src/screens/Home.tsx b/bob_party/src/screens/Home.tsx index 4448b20..2a6dfdc 100644 --- a/bob_party/src/screens/Home.tsx +++ b/bob_party/src/screens/Home.tsx @@ -1,7 +1,6 @@ import { StatusBar } from 'expo-status-bar' -import { StyleSheet, View, Text, Alert, Pressable, Image, ImageSourcePropType} from 'react-native' -import React, { Children } from 'react'; -import { SkinComponent } from '../components/skinAvatar'; +import { StyleSheet, View, ImageSourcePropType} from 'react-native' +import React from 'react'; import { User } from '../core/user'; import { Skin } from '../core/skin'; import { TopBar } from '../components/TopBar'; @@ -11,8 +10,6 @@ import { ButtonGameChoice } from '../components/ButtonGameChoice'; -const avatar = require('../../assets/Icons/BobClassic.png'); - let test:ImageSourcePropType; const test2:string="('../../assets/Icons/BobClassic.png')"; diff --git a/bob_party/src/screens/Profile.tsx b/bob_party/src/screens/Profile.tsx index dbdab01..0064ca7 100644 --- a/bob_party/src/screens/Profile.tsx +++ b/bob_party/src/screens/Profile.tsx @@ -1,17 +1,11 @@ import { StatusBar } from 'expo-status-bar' -import { StyleSheet, View, Text, Alert, Pressable, Image} from 'react-native' -import React, { Children } from 'react'; -import { SkinComponent } from '../components/skinAvatar'; -import { User } from '../core/user'; +import { StyleSheet, View, Text} from 'react-native' +import React from 'react'; import { Skin } from '../core/skin'; import { TopBar } from '../components/TopBar'; import { BotBar } from '../components/BotBar'; const skinTest= new Skin("Bob",require('../../assets/Icons/BobClassic.png')); -const engrenage = require('../../assets/Icons/UnSelected/Cogs.png'); -const gamepad = require('../../assets/Icons/UnSelected/Gamepad.png'); -const message = require('../../assets/Icons/UnSelected/Chat.png'); -const store = require('../../assets/Icons/UnSelected/Store.png'); function Profile(props: { navigation: any; }) { const { navigation } = props diff --git a/bob_party/src/screens/Settings.tsx b/bob_party/src/screens/Settings.tsx index 34b5fb2..f8b3a50 100644 --- a/bob_party/src/screens/Settings.tsx +++ b/bob_party/src/screens/Settings.tsx @@ -1,5 +1,5 @@ import { StatusBar } from 'expo-status-bar' -import { StyleSheet, View, Text, Alert, Pressable, Image} from 'react-native' +import { StyleSheet, View, Text} from 'react-native' import React from 'react'; import { TopBar } from '../components/TopBar'; diff --git a/bob_party/src/screens/Store.tsx b/bob_party/src/screens/Store.tsx index 7a4c54a..b114774 100644 --- a/bob_party/src/screens/Store.tsx +++ b/bob_party/src/screens/Store.tsx @@ -1,8 +1,6 @@ import { StatusBar } from 'expo-status-bar' -import { StyleSheet, View, Text, Alert, Pressable, Image} from 'react-native' -import React, { Children } from 'react'; -import { SkinComponent } from '../components/skinAvatar'; -import { User } from '../core/user'; +import { StyleSheet, View} from 'react-native' +import React from 'react'; import { Skin } from '../core/skin'; import { TopBar } from '../components/TopBar'; import { BotBar } from '../components/BotBar'; @@ -10,10 +8,6 @@ import { ElementAffichage } from '../components/Element'; const skinTest= new Skin("Bob",require('../../assets/Icons/BobClassic.png')); -const engrenage = require('../../assets/Icons/UnSelected/Cogs.png'); -const gamepad = require('../../assets/Icons/UnSelected/Gamepad.png'); -const message = require('../../assets/Icons/UnSelected/Chat.png'); -const store = require('../../assets/Icons/Selected/SStore.png'); function Store(props: { navigation: any; }) { const { navigation } = props