Skip to content

Commit

Permalink
[refactor/#21] lint refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
imtaejugkim committed Jan 16, 2025
1 parent 0c50573 commit 943d578
Show file tree
Hide file tree
Showing 10 changed files with 445 additions and 390 deletions.
76 changes: 41 additions & 35 deletions app/src/main/java/org/memento/presentation/main/MainScreen.kt
Original file line number Diff line number Diff line change
Expand Up @@ -57,47 +57,50 @@ fun MainScreenContent(
sheetState = bottomSheetState,
shape = RoundedCornerShape(topStart = 0.dp, topEnd = 0.dp),
containerColor = darkModeColors.gray10,
dragHandle = null
dragHandle = null,
) {
Column(
modifier = Modifier
.fillMaxWidth()
.fillMaxHeight(0.73f)
modifier =
Modifier
.fillMaxWidth()
.fillMaxHeight(0.73f),
) {
when (currentBottomSheet) {
BottomSheetType.MAIN -> MainPlusBottomSheet(
tagColor = selectedTagColor,
deadLineText = selectedDeadLine,
onNavigateDeadLineSetting = {
currentBottomSheet = BottomSheetType.DEADLINE
},
onNavigateTagSetting = {
currentBottomSheet = BottomSheetType.TAG
BottomSheetType.MAIN ->
MainPlusBottomSheet(
tagColor = selectedTagColor,
deadLineText = selectedDeadLine,
onNavigateDeadLineSetting = {
currentBottomSheet = BottomSheetType.DEADLINE
},
onNavigateTagSetting = {
currentBottomSheet = BottomSheetType.TAG
},
)

}
)
BottomSheetType.DEADLINE ->
AddToDoDeadLineScreen(
onClose = { currentBottomSheet = null },
onDone = { deadLine ->
selectedDeadLine = deadLine
currentBottomSheet = BottomSheetType.MAIN
},
)

BottomSheetType.DEADLINE -> AddToDoDeadLineScreen(
onClose = { currentBottomSheet = null },
onDone = { deadLine ->
selectedDeadLine = deadLine
currentBottomSheet = BottomSheetType.MAIN
}
)
BottomSheetType.TAG ->
AddToDoTagScreen(
onClose = { currentBottomSheet = null },
onDone = { tagColor ->
selectedTagColor = tagColor
currentBottomSheet = BottomSheetType.MAIN
},
)


BottomSheetType.TAG -> AddToDoTagScreen(
onClose = { currentBottomSheet = null },
onDone = { tagColor ->
selectedTagColor = tagColor
currentBottomSheet = BottomSheetType.MAIN
}
)

BottomSheetType.URGENCY -> AddToDoDeadLineScreen(
onClose = { currentBottomSheet = null },
onDone = { }
)
BottomSheetType.URGENCY ->
AddToDoDeadLineScreen(
onClose = { currentBottomSheet = null },
onDone = { },
)

null -> {}
}
Expand Down Expand Up @@ -131,7 +134,10 @@ fun MainScreenContent(
}

enum class BottomSheetType {
MAIN, DEADLINE, TAG, URGENCY
MAIN,
DEADLINE,
TAG,
URGENCY,
}

@Preview(showBackground = true)
Expand Down
Loading

0 comments on commit 943d578

Please sign in to comment.