Skip to content

Commit

Permalink
Merge pull request #11 from Team-ReMind/feat/onboarding
Browse files Browse the repository at this point in the history
[feat] 환자 온보딩 수정 완료
  • Loading branch information
seunghee17 authored May 16, 2024
2 parents 61eba76 + e45c6f6 commit c18a2fb
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 65 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
package com.example.remind.data.network.service

interface PatientService {
}
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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() {
Expand All @@ -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)
}

0 comments on commit c18a2fb

Please sign in to comment.