Skip to content

Commit

Permalink
[CHORE/#5] 코드 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
leeeyubin committed Jul 6, 2024
1 parent 8b3b34b commit 350c569
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ fun MockRoute(
val context = LocalContext.current
val lifecycleOwner = LocalLifecycleOwner.current

val state by viewModel.state.collectAsStateWithLifecycle(lifecycleOwner = LocalLifecycleOwner.current)
val state by viewModel.state.collectAsStateWithLifecycle(lifecycleOwner = lifecycleOwner)

LaunchedEffect(key1 = true) {
viewModel.getFriendsInfo(2)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import androidx.lifecycle.compose.LocalLifecycleOwner
import androidx.lifecycle.compose.collectAsStateWithLifecycle
import androidx.lifecycle.flowWithLifecycle
import androidx.navigation.NavHostController
import com.terning.core.designsystem.theme.TerningTheme
import com.terning.core.extension.toast
import com.terning.feature.R
import com.terning.feature.first.navigation.navigateFirst
Expand Down Expand Up @@ -64,8 +65,7 @@ fun SignInScreen(
painter = painterResource(id = R.drawable.img_terning_point),
contentDescription = null,
modifier = Modifier
.size(500.dp)
.aspectRatio(1f),
.size(500.dp),
)
KakaoButton(
title = stringResource(id = R.string.sign_in_kakao_button),
Expand All @@ -78,5 +78,7 @@ fun SignInScreen(
@Preview(showBackground = true)
@Composable
fun SignInScreenPreview() {
SignInScreen()
TerningTheme {
SignInScreen()
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ import androidx.compose.ui.graphics.Color
import androidx.compose.ui.res.painterResource
import androidx.compose.ui.tooling.preview.Preview
import androidx.compose.ui.unit.dp
import com.terning.core.designsystem.theme.TerningTheme
import com.terning.core.extension.noRippleClickable
import com.terning.feature.R


@Composable
fun KakaoButton(
title: String,
Expand Down Expand Up @@ -48,5 +48,10 @@ fun KakaoButton(
@Preview(showBackground = true)
@Composable
fun KakaoButtonPreview() {
KakaoButton("카카오로 로그인하기", onSignInClick = {})
TerningTheme {
KakaoButton(
title = "카카오로 로그인하기",
onSignInClick = {}
)
}
}

0 comments on commit 350c569

Please sign in to comment.