From 0ae41e2e22104b2554d555a9ed7c7e36d8e75742 Mon Sep 17 00:00:00 2001 From: MinseoShindor Date: Mon, 12 Feb 2024 22:11:27 +0900 Subject: [PATCH] =?UTF-8?q?[feat/#118]=20main=20hard=20push=20=EC=98=A4?= =?UTF-8?q?=EB=A5=98=20=EB=B0=A9=EC=A7=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../teumteum/teumteum/presentation/mypage/MyPageScreen.kt | 6 ------ .../mypage/setting/viewModel/MyPageViewModel.kt | 7 ------- 2 files changed, 13 deletions(-) diff --git a/app/src/main/java/com/teumteum/teumteum/presentation/mypage/MyPageScreen.kt b/app/src/main/java/com/teumteum/teumteum/presentation/mypage/MyPageScreen.kt index b7f5b34b..d944060e 100644 --- a/app/src/main/java/com/teumteum/teumteum/presentation/mypage/MyPageScreen.kt +++ b/app/src/main/java/com/teumteum/teumteum/presentation/mypage/MyPageScreen.kt @@ -72,7 +72,6 @@ fun MyPageScreen( val frontCardState by myPageViewModel.frontCardState.collectAsState() val userName by viewModel.userName.collectAsState() - val isFrontCardShown by myPageViewModel.isFrontCardShown.collectAsState() val backCard by myPageViewModel.backCardState.collectAsState() val density = LocalDensity.current.density @@ -92,11 +91,6 @@ fun MyPageScreen( ) } - val rotation by animateFloatAsState( - targetValue = if (isFrontCardShown) 0f else 180f, - animationSpec = tween(durationMillis = 500), label = "" - ) - TmScaffold( isSetting = true, onClick = { diff --git a/app/src/main/java/com/teumteum/teumteum/presentation/mypage/setting/viewModel/MyPageViewModel.kt b/app/src/main/java/com/teumteum/teumteum/presentation/mypage/setting/viewModel/MyPageViewModel.kt index c14df4a6..515ed8b5 100644 --- a/app/src/main/java/com/teumteum/teumteum/presentation/mypage/setting/viewModel/MyPageViewModel.kt +++ b/app/src/main/java/com/teumteum/teumteum/presentation/mypage/setting/viewModel/MyPageViewModel.kt @@ -36,18 +36,11 @@ class MyPageViewModel @Inject constructor( private val _friendsList = MutableStateFlow>(emptyList()) val friendsList : StateFlow> = _friendsList - private val _isFrontCardShown = MutableStateFlow(true) - val isFrontCardShown: StateFlow = _isFrontCardShown - init { loadUserInfo() loadFriends() } - fun toggleCardState() { - _isFrontCardShown.value = !_isFrontCardShown.value - } - fun loadFriends() { val userId = authRepository.getUserId() if (userId != -1L) {