Skip to content

Commit

Permalink
[TNT-114] fix: PR 리뷰 반영
Browse files Browse the repository at this point in the history
  • Loading branch information
SeonJeongk committed Jan 26, 2025
1 parent a193d4e commit 13ecc67
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -296,9 +296,9 @@ fun TnTOutlinedTextField(
verticalAlignment = Alignment.CenterVertically,
modifier = Modifier.padding(vertical = 8.dp),
) {
if (isError && !warningMessage.isNullOrEmpty()) {
if (isError && warningMessage.isNullOrEmpty().not()) {
Text(
text = warningMessage,
text = warningMessage ?: "",
style = TnTTheme.typography.body2Medium,
color = counterColor,
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ fun TraineeBasicInfoPage(
val isFormValid by remember { derivedStateOf { isHeightValid && isWeightValid } }

Scaffold(
topBar = { TnTTopBarWithBackButton(onBackClick = { onBackClick() }) },
topBar = { TnTTopBarWithBackButton(onBackClick = onBackClick) },
containerColor = TnTTheme.colors.commonColors.Common0,
) { innerPadding ->
Box(modifier = Modifier.padding(innerPadding)) {
Expand Down Expand Up @@ -141,7 +141,7 @@ fun TraineeBasicInfoPage(
text = stringResource(uiResource.string.next),
modifier = Modifier.align(Alignment.BottomCenter),
enabled = isFormValid,
onClick = { onNextClick() },
onClick = onNextClick,
)
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ fun TraineeNoteForTrainerPage(
var text by remember { mutableStateOf("") }

Scaffold(
topBar = { TnTTopBarWithBackButton(onBackClick = { onBackClick() }) },
topBar = { TnTTopBarWithBackButton(onBackClick = onBackClick) },
containerColor = TnTTheme.colors.commonColors.Common0,
) { innerPadding ->
Box(modifier = Modifier.padding(innerPadding)) {
Expand Down Expand Up @@ -72,7 +72,7 @@ fun TraineeNoteForTrainerPage(
TnTBottomButton(
text = stringResource(uiResource.string.next),
modifier = Modifier.align(Alignment.BottomCenter),
onClick = { onNextClick() },
onClick = onNextClick,
)
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ fun TraineePTPurposePage(
var selectedPurposes by remember { mutableStateOf(setOf<PTPurpose>()) }

Scaffold(
topBar = { TnTTopBarWithBackButton(onBackClick = { onBackClick() }) },
topBar = { TnTTopBarWithBackButton(onBackClick = onBackClick) },
containerColor = TnTTheme.colors.commonColors.Common0,
) { innerPadding ->
Box(modifier = Modifier.padding(innerPadding)) {
Expand Down Expand Up @@ -82,7 +82,7 @@ fun TraineePTPurposePage(
}
TnTBottomButton(
text = stringResource(uiResource.string.next),
onClick = { onNextClick() },
onClick = onNextClick,
enabled = selectedPurposes.isNotEmpty(),
modifier = Modifier.align(Alignment.BottomCenter),
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ fun TraineeProfileSetupPage(
)

Scaffold(
topBar = { TnTTopBarWithBackButton(onBackClick = { onBackClick() }) },
topBar = { TnTTopBarWithBackButton(onBackClick = onBackClick) },
containerColor = TnTTheme.colors.commonColors.Common0,
) { innerPadding ->
Box(modifier = Modifier.padding(innerPadding)) {
Expand Down Expand Up @@ -120,7 +120,7 @@ fun TraineeProfileSetupPage(
TnTBottomButton(
text = stringResource(uiResource.string.next),
enabled = text.isNotBlank() && !isWarning,
onClick = { onNextClick() },
onClick = onNextClick,
modifier = Modifier.align(Alignment.BottomCenter),
)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ fun TraineeSignUpCompletePage(
}
TnTBottomButton(
text = stringResource(uiResource.string.start),
onClick = { onNextClick() },
onClick = onNextClick,
modifier = Modifier.align(Alignment.BottomCenter),
)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ fun TrainerProfileSetupPage(
)

Scaffold(
topBar = { TnTTopBarWithBackButton(onBackClick = { onBackClick() }) },
topBar = { TnTTopBarWithBackButton(onBackClick = onBackClick) },
containerColor = TnTTheme.colors.commonColors.Common0,
) { innerPadding ->
Box(modifier = Modifier.padding(innerPadding)) {
Expand Down Expand Up @@ -122,7 +122,7 @@ fun TrainerProfileSetupPage(
text = stringResource(uiResource.string.next),
modifier = Modifier.align(Alignment.BottomCenter),
enabled = text.isNotBlank() && !isWarning,
onClick = { onNextClick() },
onClick = onNextClick,
)
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ fun TrainerSignUpCompletePage(
}
TnTBottomButton(
text = stringResource(uiResource.string.start),
onClick = { onNextClick() },
onClick = onNextClick,
modifier = Modifier.align(Alignment.BottomCenter),
)
}
Expand Down

0 comments on commit 13ecc67

Please sign in to comment.