@@ -16,15 +16,12 @@ import androidx.compose.foundation.layout.fillMaxSize
1616import androidx.compose.foundation.layout.fillMaxWidth
1717import androidx.compose.foundation.layout.height
1818import androidx.compose.foundation.layout.padding
19- import androidx.compose.foundation.layout.size
2019import androidx.compose.foundation.layout.statusBars
2120import androidx.compose.foundation.lazy.LazyRow
2221import androidx.compose.foundation.lazy.items
2322import androidx.compose.foundation.lazy.rememberLazyListState
2423import androidx.compose.foundation.rememberScrollState
2524import androidx.compose.foundation.verticalScroll
26- import androidx.compose.material.icons.Icons
27- import androidx.compose.material.icons.filled.AccountCircle
2825import androidx.compose.material3.DrawerState
2926import androidx.compose.material3.DrawerValue
3027import androidx.compose.material3.ExperimentalMaterial3Api
@@ -86,7 +83,6 @@ import to.bitkit.ui.components.SuggestionCard
8683import to.bitkit.ui.components.TabBar
8784import to.bitkit.ui.components.TertiaryButton
8885import to.bitkit.ui.components.Text13Up
89- import to.bitkit.ui.components.Title
9086import to.bitkit.ui.components.TopBarSpacer
9187import to.bitkit.ui.components.VerticalSpacer
9288import to.bitkit.ui.components.WalletBalanceView
@@ -168,13 +164,6 @@ fun HomeScreen(
168164 walletViewModel.onPullToRefresh()
169165 homeViewModel.refreshWidgets()
170166 },
171- onClickProfile = {
172- if (! hasSeenProfileIntro) {
173- rootNavController.navigate(Routes .ProfileIntro )
174- } else {
175- rootNavController.navigate(Routes .CreateProfile )
176- }
177- },
178167 onRemoveSuggestion = { suggestion ->
179168 homeViewModel.removeSuggestion(suggestion)
180169 },
@@ -214,11 +203,7 @@ fun HomeScreen(
214203 }
215204
216205 Suggestion .PROFILE -> {
217- if (! hasSeenProfileIntro) {
218- rootNavController.navigate(Routes .ProfileIntro )
219- } else {
220- rootNavController.navigate(Routes .CreateProfile )
221- }
206+ rootNavController.navigate(Routes .Profile )
222207 }
223208
224209 Suggestion .SHOP -> {
@@ -287,7 +272,6 @@ private fun Content(
287272 drawerState : DrawerState ,
288273 hazeState : HazeState = rememberHazeState(),
289274 latestActivities : List <Activity >? ,
290- onClickProfile : () -> Unit = {},
291275 onRefresh : () -> Unit = {},
292276 onRemoveSuggestion : (Suggestion ) -> Unit = {},
293277 onClickSuggestion : (Suggestion ) -> Unit = {},
@@ -306,7 +290,6 @@ private fun Content(
306290 val heightStatusBar = WindowInsets .statusBars.asPaddingValues().calculateTopPadding()
307291 TopBar (
308292 hazeState = hazeState,
309- onClickProfile = onClickProfile,
310293 rootNavController = rootNavController,
311294 scope = scope,
312295 drawerState = drawerState,
@@ -625,7 +608,6 @@ private fun Widgets(homeUiState: HomeUiState) {
625608@OptIn(ExperimentalMaterial3Api ::class )
626609private fun TopBar (
627610 hazeState : HazeState ,
628- onClickProfile : () -> Unit ,
629611 rootNavController : NavController ,
630612 scope : CoroutineScope ,
631613 drawerState : DrawerState ,
@@ -647,26 +629,7 @@ private fun TopBar(
647629 .zIndex(1f )
648630 ) {
649631 TopAppBar (
650- title = {
651- Row (
652- verticalAlignment = Alignment .CenterVertically ,
653- modifier = Modifier
654- .clickableAlpha(onClick = onClickProfile)
655- .testTag(" Header" )
656- ) {
657- Icon (
658- imageVector = Icons .Filled .AccountCircle ,
659- contentDescription = stringResource(R .string.slashtags__your_name_capital),
660- tint = Colors .White64 ,
661- modifier = Modifier .size(32 .dp)
662- )
663- HorizontalSpacer (16 .dp)
664- Title (
665- text = stringResource(R .string.slashtags__your_name_capital),
666- Modifier .testTag(" EmptyProfileHeader" )
667- )
668- }
669- },
632+ title = {},
670633 actions = {
671634 AppStatus (onClick = { rootNavController.navigate(Routes .AppStatus ) })
672635 HorizontalSpacer (4 .dp)
0 commit comments