From 76aeac773d4482659a38dcee7d3142355a474f7e Mon Sep 17 00:00:00 2001 From: alguilhot Date: Sat, 15 Oct 2022 01:09:59 +0200 Subject: [PATCH] FIX: Clean BotBar & TopBar --- bob_party/src/components/BotBar.tsx | 2 -- bob_party/src/screens/Chat.tsx | 16 ++------- bob_party/src/screens/Home.tsx | 51 ++++------------------------- bob_party/src/screens/Profile.tsx | 15 ++------- bob_party/src/screens/Settings.tsx | 18 +++------- bob_party/src/screens/Store.tsx | 20 +++-------- 6 files changed, 20 insertions(+), 102 deletions(-) diff --git a/bob_party/src/components/BotBar.tsx b/bob_party/src/components/BotBar.tsx index 79fbe3b..41a12a5 100644 --- a/bob_party/src/components/BotBar.tsx +++ b/bob_party/src/components/BotBar.tsx @@ -19,8 +19,6 @@ FC<{nav: any, state?: String }> = { var imgLeft=message, imgMid=gamepad, imgRight=store - console.log(state) - switch (state) { case 'Home': imgMid = sgamepad diff --git a/bob_party/src/screens/Chat.tsx b/bob_party/src/screens/Chat.tsx index b70abed..46ee5c2 100644 --- a/bob_party/src/screens/Chat.tsx +++ b/bob_party/src/screens/Chat.tsx @@ -5,7 +5,6 @@ import { Skin } from '../core/skin'; import { TopBar } from '../components/TopBar'; import { BotBar } from '../components/BotBar'; -const avatar = require('../../assets/Icons/BobClassic.png'); 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'); @@ -17,24 +16,15 @@ function Chat(props: { navigation: any; }) { return ( couille ); diff --git a/bob_party/src/screens/Home.tsx b/bob_party/src/screens/Home.tsx index e8dadba..c568cef 100644 --- a/bob_party/src/screens/Home.tsx +++ b/bob_party/src/screens/Home.tsx @@ -10,7 +10,6 @@ import { Conversation } from '../core/conversation'; -const avatar = require('../../assets/Icons/BobClassic.png'); let tabSkin:Skin[]; const skinTest= new Skin("Bob",require('../../assets/Icons/BobClassic.png')); const skinTest2= new Skin("wesh",require('../../assets/BobsSkins/BobBlue.png')); @@ -18,26 +17,15 @@ tabSkin=[skinTest]; tabSkin.push(skinTest2); let tabConv:Conversation[]=[]; const UserActu=new User("14", "leBg", "ouioui", "grand", "la", 12222, 123324, skinTest, tabSkin, tabConv); -const engrenage = require('../../assets/Icons/UnSelected/Cogs.png'); -const gamepad = require('../../assets/Icons/Selected/SGamepad.png'); -const message = require('../../assets/Icons/UnSelected/Chat.png'); -const store = require('../../assets/Icons/UnSelected/Store.png'); - function Home(props: { navigation: any; }) { const { navigation } = props return ( - +