Skip to content

Commit

Permalink
⚡️ :: 타이틀,버튼텍스트 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
rladmsdh committed Jun 18, 2023
1 parent 3258a69 commit c4d3770
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,14 +90,16 @@ fun WriteScheduleContent(
) {
var name by remember { mutableStateOf(schedulesData?.name ?: "") }
var date by remember { mutableStateOf(schedulesData?.date?:"") }
val title by remember { mutableStateOf(if (schedulesData == null) "일정 작성" else "일정 수정") }
val btnText by remember { mutableStateOf(if (schedulesData == null) "등록" else "수정") }
var timerModalState by remember { mutableStateOf(false) }
val btnEnabled = name.length > 1 && date.isNotEmpty()

Column(modifier = Modifier.padding(top = DevicePaddings.statusBarHeightDp.dp)) {
Header(
painter = painterResource(id = R.drawable.ic_back),
title = "일정 작성",
btnText = "등록",
title = title,
btnText = btnText,
btnEnabled = btnEnabled,
onIconClick = onIconClick,
onBtnClick = { onBtnClick(name, date) }
Expand Down

0 comments on commit c4d3770

Please sign in to comment.