diff --git a/app/src/main/java/com/example/remind/data/network/service/AuthService.kt b/app/src/main/java/com/example/remind/data/network/service/AuthService.kt index a8e6227..06f0148 100644 --- a/app/src/main/java/com/example/remind/data/network/service/AuthService.kt +++ b/app/src/main/java/com/example/remind/data/network/service/AuthService.kt @@ -10,7 +10,6 @@ import com.example.remind.data.network.adapter.ApiResult import retrofit2.http.Body import retrofit2.http.POST -//용도에 따라 나누기 interface AuthService { @POST("/member/refresh") suspend fun updateToken( diff --git a/app/src/main/java/com/example/remind/data/network/service/PatientService.kt b/app/src/main/java/com/example/remind/data/network/service/PatientService.kt new file mode 100644 index 0000000..97762c9 --- /dev/null +++ b/app/src/main/java/com/example/remind/data/network/service/PatientService.kt @@ -0,0 +1,4 @@ +package com.example.remind.data.network.service + +interface PatientService { +} \ No newline at end of file diff --git a/app/src/main/java/com/example/remind/feature/screens/patience/MoodChartScreen.kt b/app/src/main/java/com/example/remind/feature/screens/patience/MoodChartScreen.kt index 40cc517..23407cc 100644 --- a/app/src/main/java/com/example/remind/feature/screens/patience/MoodChartScreen.kt +++ b/app/src/main/java/com/example/remind/feature/screens/patience/MoodChartScreen.kt @@ -28,14 +28,6 @@ import com.example.remind.R import com.example.remind.core.common.component.BasicButton import com.example.remind.core.common.component.BasicTextButton import com.example.remind.core.designsystem.theme.RemindTheme -import com.example.remind.feature.screens.auth.onboarding.typeButton -import com.kakao.sdk.auth.model.OAuthToken -import com.kakao.sdk.common.model.ClientError -import com.kakao.sdk.common.model.ClientErrorCause -import com.kakao.sdk.user.UserApiClient -import com.patrykandpatrick.vico.compose.chart.Chart -import com.patrykandpatrick.vico.compose.style.ChartStyle -import com.patrykandpatrick.vico.views.chart.line.lineChart @Composable fun MoodChartScreen() { @@ -80,22 +72,6 @@ fun MoodChartScreen() { } } -//@Composable -//fun MoodChart( -// modifier: Modifier = Modifier -//) { -// Box( -// modifier = modifier -// .background(RemindTheme.colors.white, shape = RoundedCornerShape(12.dp)) -// .border(width = 1.dp, color = RemindTheme.colors.grayscale_2, shape = RoundedCornerShape(12.dp)) -// ) { -// Chart( -// modifier = modifier.align(Alignment.Center), -// chart = lineChart(), -// chartModelProducer = -// ) -// } -//} @Preview @Composable diff --git a/app/src/main/java/com/example/remind/feature/screens/patience_detail/PatienceDetailScreen.kt b/app/src/main/java/com/example/remind/feature/screens/patience_detail/PatienceDetailScreen.kt index bf4051c..93c2d73 100644 --- a/app/src/main/java/com/example/remind/feature/screens/patience_detail/PatienceDetailScreen.kt +++ b/app/src/main/java/com/example/remind/feature/screens/patience_detail/PatienceDetailScreen.kt @@ -1,19 +1,8 @@ package com.example.remind.feature.screens.patience_detail -import android.content.Context import androidx.compose.foundation.layout.Column import androidx.compose.runtime.Composable -import androidx.compose.ui.platform.LocalContext -import androidx.compose.ui.tooling.preview.Preview import com.example.remind.core.designsystem.theme.RemindTheme -import com.patrykandpatrick.vico.compose.axis.horizontal.bottomAxis -import com.patrykandpatrick.vico.compose.axis.vertical.startAxis -import com.patrykandpatrick.vico.compose.chart.Chart -import com.patrykandpatrick.vico.core.entry.ChartEntryModelProducer -import com.patrykandpatrick.vico.core.entry.FloatEntry -import com.patrykandpatrick.vico.core.marker.Marker -import com.patrykandpatrick.vico.views.chart.line.lineChart -import kotlin.random.Random @Composable fun PatienceDetailScreen() { @@ -22,33 +11,4 @@ fun PatienceDetailScreen() { } } -} - -@Composable -fun MoodGraph(context : Context) { - val producer = ChartEntryModelProducer(getRandomEntries()) - Chart( - chart = lineChart( - context, - - ), - chartModelProducer = producer, - startAxis = startAxis(), - bottomAxis = bottomAxis() - ) -} - -fun getRandomEntries() = List(size=5) { - 25f * Random.nextFloat() -}.mapIndexed { x, y -> - FloatEntry( - x = x.toFloat(), - y=y - ) -} - -@Composable -@Preview -fun ScreenPreview() { - MoodGraph(context = LocalContext.current) } \ No newline at end of file