@@ -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 -> {
@@ -286,7 +271,6 @@ private fun Content(
286271 drawerState : DrawerState ,
287272 hazeState : HazeState = rememberHazeState(),
288273 latestActivities : List <Activity >? ,
289- onClickProfile : () -> Unit = {},
290274 onRefresh : () -> Unit = {},
291275 onRemoveSuggestion : (Suggestion ) -> Unit = {},
292276 onClickSuggestion : (Suggestion ) -> Unit = {},
@@ -305,7 +289,6 @@ private fun Content(
305289 val heightStatusBar = WindowInsets .statusBars.asPaddingValues().calculateTopPadding()
306290 TopBar (
307291 hazeState = hazeState,
308- onClickProfile = onClickProfile,
309292 rootNavController = rootNavController,
310293 scope = scope,
311294 drawerState = drawerState,
@@ -624,7 +607,6 @@ private fun Widgets(homeUiState: HomeUiState) {
624607@OptIn(ExperimentalMaterial3Api ::class )
625608private fun TopBar (
626609 hazeState : HazeState ,
627- onClickProfile : () -> Unit ,
628610 rootNavController : NavController ,
629611 scope : CoroutineScope ,
630612 drawerState : DrawerState ,
@@ -646,26 +628,7 @@ private fun TopBar(
646628 .zIndex(1f )
647629 ) {
648630 TopAppBar (
649- title = {
650- Row (
651- verticalAlignment = Alignment .CenterVertically ,
652- modifier = Modifier
653- .clickableAlpha(onClick = onClickProfile)
654- .testTag(" Header" )
655- ) {
656- Icon (
657- imageVector = Icons .Filled .AccountCircle ,
658- contentDescription = stringResource(R .string.slashtags__your_name_capital),
659- tint = Colors .White64 ,
660- modifier = Modifier .size(32 .dp)
661- )
662- HorizontalSpacer (16 .dp)
663- Title (
664- text = stringResource(R .string.slashtags__your_name_capital),
665- Modifier .testTag(" EmptyProfileHeader" )
666- )
667- }
668- },
631+ title = {},
669632 actions = {
670633 AppStatus (onClick = { rootNavController.navigate(Routes .AppStatus ) })
671634 HorizontalSpacer (4 .dp)
0 commit comments