Skip to content

Commit

Permalink
Drop profile from UI (#1068)
Browse files Browse the repository at this point in the history
Co-authored-by: Ashley Davies <[email protected]>
  • Loading branch information
ashdavies and ashdavies authored Jul 16, 2024
1 parent 1bde797 commit 519caef
Show file tree
Hide file tree
Showing 11 changed files with 1 addition and 342 deletions.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,10 @@ import com.slack.circuit.runtime.ui.Ui
import com.slack.circuit.runtime.ui.ui
import io.ashdavies.activity.ActivityPresenter
import io.ashdavies.activity.ActivityScreen
import io.ashdavies.profile.ProfilePresenter
import io.ashdavies.profile.ProfileScreen

public fun eventsPresenterFactory(): Presenter.Factory = Presenter.Factory { screen, _, _ ->
when (screen) {
is ActivityScreen -> presenterOf { ActivityPresenter() }
is ProfileScreen -> presenterOf { ProfilePresenter() }
else -> null
}
}
Expand All @@ -23,10 +20,6 @@ public fun eventsUiFactory(): Ui.Factory = Ui.Factory { screen, _ ->
ActivityScreen(state, modifier)
}

is ProfileScreen -> ui<ProfileScreen.State> { state, modifier ->
ProfileScreen(state, modifier)
}

else -> null
}
}

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import androidx.compose.foundation.layout.RowScope
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.filled.Edit
import androidx.compose.material.icons.filled.Home
import androidx.compose.material.icons.filled.Person
import androidx.compose.material3.BottomAppBar
import androidx.compose.material3.CenterAlignedTopAppBar
import androidx.compose.material3.ExperimentalMaterial3Api
Expand Down Expand Up @@ -33,7 +32,6 @@ import io.ashdavies.identity.IdentityState
import io.ashdavies.material.BottomSheetScaffold
import io.ashdavies.parcelable.Parcelable
import io.ashdavies.parcelable.Parcelize
import io.ashdavies.profile.ProfileScreen

public fun afterPartyScreen(): Screen = AfterPartyScreen

Expand Down Expand Up @@ -67,7 +65,7 @@ internal fun AfterPartyScreen(
actions = {
ProfileActionButton(
identityState = state.identityState,
onClick = { eventSink(AfterPartyScreen.Event.BottomNav(ProfileScreen)) },
onClick = { },
)
},
)
Expand Down Expand Up @@ -134,12 +132,6 @@ internal fun AfterPartyBottomBar(
onClick = { onClick(GalleryScreen) },
selected = selected is GalleryScreen,
)

NavigationBarItem(
icon = { NavigationBarImage(Icons.Default.Person) },
onClick = { onClick(ProfileScreen) },
selected = selected is ProfileScreen,
)
}
}
}
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

13 changes: 0 additions & 13 deletions after-party/src/commonMain/kotlin/io/ashdavies/random/Profile.kt

This file was deleted.

This file was deleted.

This file was deleted.

0 comments on commit 519caef

Please sign in to comment.