Skip to content

Commit

Permalink
refactor: replace LocationAutocompleteTextField with AutocompleteText…
Browse files Browse the repository at this point in the history
…Field

This commit replaces the `LocationAutocompleteTextField` component with the more generic `AutocompleteTextField` component in
 the `CreateWorkerProfile` screen. This change improves code reusability and simplifies the component hierarchy.
  • Loading branch information
OkelloSam21 committed Aug 11, 2024
1 parent 967ae2b commit e2a88ee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import com.google.android.libraries.places.api.model.Place
import com.samuelokello.kazihub.presentation.shared.components.EditTextField

@Composable
fun LocationAutocompleteTextField(
fun AutocompleteTextField(
value: String,
onValueChange: (String) -> Unit,
suggestions: List<Place>,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package com.samuelokello.kazihub.presentation.shared.profile
import androidx.compose.runtime.Composable
import com.ramcosta.composedestinations.annotation.Destination
import com.ramcosta.composedestinations.navigation.DestinationsNavigator
import com.samuelokello.kazihub.presentation.business.BusinessProfileScreen
import com.samuelokello.kazihub.presentation.business.profile.ui.BusinessProfileScreen
import com.samuelokello.kazihub.presentation.worker.ui.profile.WorkerProfileScreen
import com.samuelokello.kazihub.utils.UserRole

Expand Down

0 comments on commit e2a88ee

Please sign in to comment.