Skip to content

Commit

Permalink
style: run ktfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
taghizadlaura committed Oct 14, 2024
1 parent 7f64150 commit a176bbe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
7 changes: 2 additions & 5 deletions app/src/main/java/com/android/periodpals/MainActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,6 @@ import androidx.core.app.ActivityCompat
import androidx.core.content.ContextCompat
import com.android.periodpals.ui.map.MapScreen
import com.android.periodpals.ui.theme.PeriodPalsAppTheme
import io.github.jan.supabase.createSupabaseClient
import io.github.jan.supabase.postgrest.Postgrest
import io.github.jan.supabase.postgrest.from
import kotlinx.coroutines.CoroutineDispatcher
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.withContext
Expand Down Expand Up @@ -93,8 +90,8 @@ class MainActivity : ComponentActivity() {
@Composable
fun CountriesList(dispatcher: CoroutineDispatcher = Dispatchers.IO) {
var countries by remember { mutableStateOf<List<Country>>(listOf()) }
LaunchedEffect(Unit) { withContext(dispatcher) { countries = listOf(Country(1, "eyyo pogger")) } }
LazyColumn {
LaunchedEffect(Unit) { withContext(dispatcher) { countries = listOf(Country(1, "eyyo pogger")) } }
LazyColumn {
items(
countries.size,
) { idx ->
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/java/com/android/periodpals/ui/map/Map.kt
Original file line number Diff line number Diff line change
Expand Up @@ -93,4 +93,4 @@ fun AndroidMapView(modifier: Modifier = Modifier, locationPermissionGranted: Boo
overlays.add(scaleBarOverlay)
}
})
}
}

0 comments on commit a176bbe

Please sign in to comment.