@@ -90,29 +90,29 @@ internal fun LoginUi(
9090 modifier = Modifier .fillMaxWidth(),
9191 horizontalAlignment = Alignment .CenterHorizontally ,
9292 ) {
93- ReedButton (
94- onClick = {
95- state.eventSink(LoginUiEvent .OnKakaoLoginButtonClick )
96- },
97- sizeStyle = largeButtonStyle,
98- colorStyle = ReedButtonColorStyle .KAKAO ,
99- modifier = Modifier
100- .fillMaxWidth()
101- .padding(
102- start = ReedTheme .spacing.spacing5,
103- end = ReedTheme .spacing.spacing5,
104- ),
105- text = stringResource(id = R .string.kakao_login),
106- leadingIcon = {
107- Icon (
108- imageVector = ImageVector .vectorResource(id = R .drawable.ic_kakao),
109- contentDescription = " Kakao Icon" ,
110- tint = Color .Unspecified ,
111- )
112- },
113- )
114- Spacer (modifier = Modifier .height(ReedTheme .spacing.spacing2))
11593 if (state.returnToScreen == null ) {
94+ ReedButton (
95+ onClick = {
96+ state.eventSink(LoginUiEvent .OnKakaoLoginButtonClick )
97+ },
98+ sizeStyle = largeButtonStyle,
99+ colorStyle = ReedButtonColorStyle .KAKAO ,
100+ modifier = Modifier
101+ .fillMaxWidth()
102+ .padding(
103+ start = ReedTheme .spacing.spacing5,
104+ end = ReedTheme .spacing.spacing5,
105+ ),
106+ text = stringResource(id = R .string.kakao_login),
107+ leadingIcon = {
108+ Icon (
109+ imageVector = ImageVector .vectorResource(id = R .drawable.ic_kakao),
110+ contentDescription = " Kakao Icon" ,
111+ tint = Color .Unspecified ,
112+ )
113+ },
114+ )
115+ Spacer (modifier = Modifier .height(ReedTheme .spacing.spacing2))
116116 ReedTextButton (
117117 onClick = {
118118 state.eventSink(LoginUiEvent .OnGuestLoginButtonClick )
@@ -121,6 +121,29 @@ internal fun LoginUi(
121121 sizeStyle = smallButtonStyle,
122122 colorStyle = ReedButtonColorStyle .TEXT ,
123123 )
124+ } else {
125+ ReedButton (
126+ onClick = {
127+ state.eventSink(LoginUiEvent .OnKakaoLoginButtonClick )
128+ },
129+ sizeStyle = largeButtonStyle,
130+ colorStyle = ReedButtonColorStyle .KAKAO ,
131+ modifier = Modifier
132+ .fillMaxWidth()
133+ .padding(
134+ start = ReedTheme .spacing.spacing5,
135+ end = ReedTheme .spacing.spacing5,
136+ ),
137+ text = stringResource(id = R .string.kakao_login),
138+ leadingIcon = {
139+ Icon (
140+ imageVector = ImageVector .vectorResource(id = R .drawable.ic_kakao),
141+ contentDescription = " Kakao Icon" ,
142+ tint = Color .Unspecified ,
143+ )
144+ },
145+ )
146+ Spacer (modifier = Modifier .height(ReedTheme .spacing.spacing8))
124147 }
125148 }
126149 }
0 commit comments