Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drop profile from UI #1068

Merged
merged 1 commit into from
Jul 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

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.

Loading