Skip to content

Commit

Permalink
Merge pull request #158 from MohamedRejeb/0.5.x
Browse files Browse the repository at this point in the history
Remove DateSelector.kt
  • Loading branch information
MohamedRejeb authored Aug 20, 2024
2 parents 0fa701e + ad7f9e3 commit f18b561
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 203 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,9 @@ package com.mohamedrejeb.calf.sample
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.Surface
import androidx.compose.runtime.Composable
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.remember
import androidx.compose.runtime.setValue
import com.mohamedrejeb.calf.navigation.rememberNavController
import com.mohamedrejeb.calf.sample.navigation.AppNavGraph
import com.mohamedrejeb.calf.sample.screens.DateSelector
import com.mohamedrejeb.calf.sample.ui.theme.CalfTheme
import kotlinx.datetime.Clock
import kotlinx.datetime.LocalDate
import kotlinx.datetime.TimeZone
import kotlinx.datetime.toLocalDateTime

@Composable
fun App() =
Expand All @@ -26,23 +17,5 @@ fun App() =
contentColor = MaterialTheme.colorScheme.onSurface,
) {
AppNavGraph(navController = navController)

// var date by remember {
// val dateTime = Clock.System.now().toLocalDateTime(TimeZone.UTC)
// mutableStateOf(
// LocalDate(
// year = dateTime.year,
// monthNumber = dateTime.monthNumber,
// dayOfMonth = dateTime.dayOfMonth - 5
// )
// )
// }
//
// DateSelector(
// initialDate = date,
// onDateSelected = {
// date = it
// }
// )
}
}

This file was deleted.

0 comments on commit f18b561

Please sign in to comment.