Skip to content

Commit

Permalink
상세 스케줄 보러가기 클릭시에 상세스케줄 화면으로 이동
Browse files Browse the repository at this point in the history
  • Loading branch information
boris-xyz committed Sep 1, 2024
1 parent 9d13272 commit 1560a9d
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
1 change: 0 additions & 1 deletion app/src/main/java/com/mashup/ui/schedule/ScheduleRoute.kt
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,6 @@ fun ScheduleRoute(
scheduleState = scheduleState,
dailyListState = dailyListState,
onClickScheduleInformation = { id, type -> context.moveToScheduleInformation(id, type) },
onClickAttendance = { context.moveToAttendance(it) },
onClickMashongButton = {
AnalyticsManager.addEvent(eventName = LOG_EVENT_LIST_WEEK_MASHONG)
context.moveToMashong()
Expand Down
2 changes: 0 additions & 2 deletions app/src/main/java/com/mashup/ui/schedule/ScheduleScreen.kt
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ fun ScheduleScreen(
modifier: Modifier = Modifier,
scheduleType: ScheduleType = ScheduleType.WEEK,
onClickScheduleInformation: (Int, String) -> Unit = { _, _ -> },
onClickAttendance: (Int) -> Unit = {},
onClickMashongButton: () -> Unit = {},
makeToast: (String) -> Unit = {},
refreshState: Boolean = false
Expand All @@ -43,7 +42,6 @@ fun ScheduleScreen(
)
onClickScheduleInformation(scheduleId, type)
},
onClickAttendance = onClickAttendance,
onClickMashongButton = onClickMashongButton,
makeToast = makeToast,
refreshState = refreshState
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ import androidx.compose.runtime.setValue
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.graphicsLayer
import androidx.compose.ui.tooling.preview.Preview
import androidx.compose.ui.unit.dp
import com.mashup.core.ui.theme.MashUpTheme
import com.mashup.ui.schedule.ScheduleState
import com.mashup.ui.schedule.item.EmptyScheduleItem
import com.mashup.ui.schedule.item.ScheduleViewPagerEmptyItem
Expand All @@ -30,7 +32,6 @@ fun WeeklySchedule(
scheduleState: ScheduleState,
modifier: Modifier = Modifier,
onClickScheduleInformation: (Int, String) -> Unit = { _, _ -> },
onClickAttendance: (Int) -> Unit = {},
onClickMashongButton: () -> Unit = {},
makeToast: (String) -> Unit = {},
refreshState: Boolean = false
Expand Down Expand Up @@ -104,7 +105,6 @@ fun WeeklySchedule(
},
data = data,
onClickScheduleInformation = onClickScheduleInformation,
onClickAttendance = onClickAttendance,
makeToast = makeToast
)
}
Expand All @@ -122,7 +122,6 @@ fun WeeklySchedule(
},
data = data,
onClickScheduleInformation = onClickScheduleInformation,
onClickAttendance = onClickAttendance
)
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ fun ScheduleViewPagerInProgressItem(
data: ScheduleCard.InProgressSchedule,
modifier: Modifier = Modifier,
onClickScheduleInformation: (Int, String) -> Unit = { _, _ -> },
onClickAttendance: (Int) -> Unit = {}
) {
val textColor by remember { mutableStateOf(data.scheduleResponse.scheduleType.getButtonTextColor()) }
Column(
Expand Down Expand Up @@ -169,7 +168,7 @@ fun ScheduleViewPagerInProgressItem(
)
setPadding(12, 0, 0, 0)
setOnClickListener {
onClickAttendance(data.scheduleResponse.scheduleId)
onClickScheduleInformation(data.scheduleResponse.scheduleId, data.scheduleResponse.scheduleType)
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ fun ScheduleViewPagerSuccessItem(
data: ScheduleCard.EndSchedule,
modifier: Modifier = Modifier,
onClickScheduleInformation: (Int, String) -> Unit = { _, _ -> },
onClickAttendance: (Int) -> Unit = {},
makeToast: (String) -> Unit = {}
) {
val context = LocalContext.current
Expand Down Expand Up @@ -217,7 +216,10 @@ fun ScheduleViewPagerSuccessItem(
)
setPadding(12, 0, 0, 0)
setOnClickListener {
onClickAttendance(data.scheduleResponse.scheduleId)
onClickScheduleInformation(
data.scheduleResponse.scheduleId,
data.scheduleResponse.scheduleType
)
}
}
}
Expand Down Expand Up @@ -310,7 +312,10 @@ fun ScheduleViewPagerSuccessItem(
)
setPadding(12, 0, 0, 0)
setOnClickListener {
onClickAttendance(data.scheduleResponse.scheduleId)
onClickScheduleInformation(
data.scheduleResponse.scheduleId,
data.scheduleResponse.scheduleType
)
}
}
}
Expand Down

0 comments on commit 1560a9d

Please sign in to comment.