Skip to content

Commit

Permalink
[FEAT/#27] BaseResponse μˆ˜μ •
Browse files Browse the repository at this point in the history
  • Loading branch information
leeeyubin committed Jul 9, 2024
1 parent 109d375 commit 4217e3e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 20 deletions.
6 changes: 2 additions & 4 deletions data/src/main/java/com/terning/data/dto/BaseResponse.kt
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,8 @@ import kotlinx.serialization.Serializable
data class BaseResponse<T>(
@SerialName("status")
val status: Int,
@SerialName("code")
val code: String,
@SerialName("message")
val message: String,
@SerialName("data")
val data: T,
@SerialName("result")
val result: T,
)
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@ import androidx.compose.foundation.layout.wrapContentHeight
import androidx.compose.runtime.Composable
import androidx.compose.runtime.LaunchedEffect
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.remember
import androidx.compose.runtime.setValue
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.platform.LocalContext
Expand All @@ -29,7 +26,6 @@ import com.terning.core.extension.toast
import com.terning.feature.R
import com.terning.feature.home.navigation.navigateHome
import com.terning.feature.onboarding.signin.component.KakaoButton
import com.terning.feature.onboarding.signup.component.SignUpBottomSheet

@Composable
fun SignInRoute(
Expand Down Expand Up @@ -60,7 +56,6 @@ fun SignInScreen(
modifier: Modifier = Modifier,
onSignInClick: () -> Unit = {},
) {
var showBottomSheet by remember { mutableStateOf(false) }

Column(
modifier = modifier
Expand All @@ -77,18 +72,10 @@ fun SignInScreen(
KakaoButton(
title = stringResource(id = R.string.sign_in_kakao_button),
onSignInClick = {
//onSignInClick()
showBottomSheet = true
onSignInClick()
},
modifier = modifier.padding(horizontal = 20.dp)
)

if (showBottomSheet) {
SignUpBottomSheet(
onDismiss = { showBottomSheet = false },
onStartDialog = { showBottomSheet = false },
)
}
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.aspectRatio
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.size
import androidx.compose.foundation.lazy.grid.GridCells
import androidx.compose.foundation.lazy.grid.LazyVerticalGrid
import androidx.compose.foundation.lazy.grid.items
Expand Down Expand Up @@ -54,7 +53,7 @@ fun SignUpBottomSheet(
onButtonClick = { onStartDialog() },
modifier = modifier.padding(horizontal = 24.dp)
)
Spacer(modifier = modifier.padding(bottom = 36.dp))
Spacer(modifier = modifier.padding(bottom = 15.dp))
}
},
onDismissRequest = { onDismiss() }
Expand Down

0 comments on commit 4217e3e

Please sign in to comment.