From 7c779d2f8e228b56be2e669c35c6f77bf84bd775 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Muhammed=20Erkam=20G=C3=B6kcep=C4=B1nar?= Date: Mon, 16 Dec 2024 21:33:33 +0300 Subject: [PATCH 1/2] fix: custom header color --- mobile/src/pages/App.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mobile/src/pages/App.js b/mobile/src/pages/App.js index bb31260c..d89c9487 100644 --- a/mobile/src/pages/App.js +++ b/mobile/src/pages/App.js @@ -158,7 +158,7 @@ const App = () => { const styles = StyleSheet.create({ customHeader: { height: 60, - backgroundColor: '#0077B6', + backgroundColor: '#007BFF', flexDirection: 'row', alignItems: 'center', justifyContent: 'space-between', From 7f1d50c637413b425d8597bfad9d2ac4b4eadcc9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Muhammed=20Erkam=20G=C3=B6kcep=C4=B1nar?= Date: Mon, 16 Dec 2024 21:37:47 +0300 Subject: [PATCH 2/2] fix: fix appjs --- mobile/src/pages/App.js | 45 +++++++++++++++++++++++++++++++++++++++-- 1 file changed, 43 insertions(+), 2 deletions(-) diff --git a/mobile/src/pages/App.js b/mobile/src/pages/App.js index d89c9487..8865ba71 100644 --- a/mobile/src/pages/App.js +++ b/mobile/src/pages/App.js @@ -19,6 +19,9 @@ import Community from './Community'; import Post from './Post'; import CreatePost from './CreatePost'; import StockDetails from './StockDetails'; +import Portfolio from './Portfolio'; +import PortfolioDetails from './PortfolioDetails'; +import CreatePortfolio from './CreatePortfolio'; import { AuthProvider, useAuth } from './context/AuthContext'; @@ -89,6 +92,31 @@ const MarketsStack = () => ( ); +const PortfolioStack = () => ( + + }} + /> + + + + +); + const DrawerNavigator = () => { const { username, userId } = useAuth(); @@ -102,7 +130,7 @@ const DrawerNavigator = () => { }} > - { + { userId ? ( + + ) : ( + + )} );