Skip to content

Commit

Permalink
[feature/#928] rename AuthTextWithArrow function
Browse files Browse the repository at this point in the history
  • Loading branch information
leeeyubin committed Nov 7, 2024
1 parent 2d63166 commit df75058
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 11 deletions.
11 changes: 4 additions & 7 deletions app/src/main/java/org/sopt/official/feature/auth/AuthActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ import androidx.compose.runtime.remember
import androidx.compose.runtime.setValue
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.platform.LocalContext
import androidx.compose.ui.res.painterResource
import androidx.compose.ui.tooling.preview.Preview
Expand Down Expand Up @@ -89,7 +88,7 @@ import org.sopt.official.designsystem.Gray700
import org.sopt.official.designsystem.SoptTheme
import org.sopt.official.designsystem.White
import org.sopt.official.feature.auth.component.AuthButton
import org.sopt.official.feature.auth.component.AuthTextWithButton
import org.sopt.official.feature.auth.component.AuthTextWithArrow
import org.sopt.official.feature.home.HomeActivity
import org.sopt.official.network.model.response.OAuthToken
import org.sopt.official.network.persistence.SoptDataStore
Expand Down Expand Up @@ -275,7 +274,7 @@ class AuthActivity : AppCompatActivity() {
)
}
Spacer(modifier = Modifier.height(16.dp))
AuthTextWithButton(text = "로그인이 안 되나요?")
AuthTextWithArrow(text = "로그인이 안 되나요?")
Spacer(modifier = Modifier.height(44.dp))
AuthDivider()
Spacer(modifier = Modifier.height(16.dp))
Expand All @@ -295,17 +294,15 @@ class AuthActivity : AppCompatActivity() {
)
}
Spacer(modifier = Modifier.height(16.dp))
AuthTextWithButton(text = "나중에 로그인할래요.")
AuthTextWithArrow(text = "나중에 로그인할래요.")
Spacer(modifier = Modifier.height(28.dp))
}
}

@Composable
private fun AuthDivider() {
Row(
modifier = Modifier
.fillMaxWidth()
.padding(horizontal = 20.dp),
modifier = Modifier.padding(horizontal = 20.dp),
verticalAlignment = Alignment.CenterVertically,
) {
HorizontalDivider(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import org.sopt.official.designsystem.Orange400
import org.sopt.official.designsystem.SoptTheme
import org.sopt.official.designsystem.White
import org.sopt.official.feature.auth.component.AuthButton
import org.sopt.official.feature.auth.component.AuthTextWithButton
import org.sopt.official.feature.auth.component.AuthTextWithArrow

@AndroidEntryPoint
class AuthErrorActivity : AppCompatActivity() {
Expand Down Expand Up @@ -84,7 +84,7 @@ class AuthErrorActivity : AppCompatActivity() {
)
}
Spacer(modifier = Modifier.height(16.dp))
AuthTextWithButton(text = "로그인이 안 되나요?")
AuthTextWithArrow(text = "로그인이 안 되나요?")
Spacer(modifier = Modifier.height(28.dp))
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import org.sopt.official.designsystem.SoptTheme
import org.sopt.official.designsystem.White

@Composable
fun AuthTextWithButton(
fun AuthTextWithArrow(
text: String,
modifier: Modifier = Modifier,
textStyle: TextStyle = SoptTheme.typography.label14SB,
Expand All @@ -42,7 +42,7 @@ fun AuthTextWithButton(
@Composable
private fun AuthTextWithButtonPreview() {
SoptTheme {
AuthTextWithButton(
AuthTextWithArrow(
text = "text",
textColor = White,
textStyle = SoptTheme.typography.label12SB
Expand Down

0 comments on commit df75058

Please sign in to comment.