Skip to content
Snippets Groups Projects
Commit 18d0461b authored by Taras's avatar Taras
Browse files

Fix setting navigator directions

parent 1ff6d463
No related branches found
No related tags found
No related merge requests found
......@@ -5,7 +5,6 @@ import org.futo.circles.R
import org.futo.circles.core.extensions.navigateSafe
import org.futo.circles.core.extensions.showError
import org.futo.circles.core.model.ShareUrlTypeArg
import org.futo.circles.feature.people.PeopleFragmentDirections
class SettingsNavigator(private val fragment: SettingsFragment) {
......@@ -37,7 +36,7 @@ class SettingsNavigator(private val fragment: SettingsFragment) {
fun navigateToEditProfile() {
fragment.findNavController()
.navigateSafe(PeopleFragmentDirections.toEditProfileDialogFragment())
.navigateSafe(SettingsFragmentDirections.toEditProfileDialogFragment())
}
fun navigateToShareProfile(sharedSpaceId: String?) {
......@@ -48,7 +47,7 @@ class SettingsNavigator(private val fragment: SettingsFragment) {
return
}
fragment.findNavController().navigateSafe(
PeopleFragmentDirections.toShareProfileDialogFragment(
SettingsFragmentDirections.toShareProfileDialogFragment(
sharedSpaceId,
ShareUrlTypeArg.PROFILE
)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment