@@ -62,9 +62,9 @@ import com.threegap.bitnagil.presentation.screen.reportwrite.component.ReportCat
6262import com.threegap.bitnagil.presentation.screen.reportwrite.component.ReportField
6363import com.threegap.bitnagil.presentation.screen.reportwrite.component.template.CompleteReportContent
6464import com.threegap.bitnagil.presentation.screen.reportwrite.component.template.SubmittingReportContent
65- import com.threegap.bitnagil.presentation.screen.reportwrite.contract.ReportSideEffect
66- import com.threegap.bitnagil.presentation.screen.reportwrite.contract.ReportState
67- import com.threegap.bitnagil.presentation.screen.reportwrite.contract.ReportState .Companion.MAX_IMAGE_COUNT
65+ import com.threegap.bitnagil.presentation.screen.reportwrite.contract.ReportWriteSideEffect
66+ import com.threegap.bitnagil.presentation.screen.reportwrite.contract.ReportWriteState
67+ import com.threegap.bitnagil.presentation.screen.reportwrite.contract.ReportWriteState .Companion.MAX_IMAGE_COUNT
6868import com.threegap.bitnagil.presentation.screen.reportwrite.model.SubmitState
6969import com.threegap.bitnagil.presentation.util.file.createCameraImageUri
7070import com.threegap.bitnagil.presentation.util.permission.rememberPermissionHandler
@@ -74,18 +74,18 @@ import org.orbitmvi.orbit.compose.collectSideEffect
7474
7575@OptIn(ExperimentalMaterial3Api ::class , ExperimentalPermissionsApi ::class )
7676@Composable
77- fun ReportScreenContainer (
77+ fun ReportWriteScreenContainer (
7878 navigateToBack : () -> Unit ,
79- viewModel : ReportViewModel = hiltViewModel(),
79+ viewModel : ReportWriteViewModel = hiltViewModel(),
8080) {
8181 val context = LocalContext .current
8282 val uiState by viewModel.collectAsState()
8383 val contentFocusRequester = remember { FocusRequester () }
8484
8585 viewModel.collectSideEffect { sideEffect ->
8686 when (sideEffect) {
87- is ReportSideEffect .NavigateToBack -> navigateToBack()
88- is ReportSideEffect .FocusOnContent -> {
87+ is ReportWriteSideEffect .NavigateToBack -> navigateToBack()
88+ is ReportWriteSideEffect .FocusOnContent -> {
8989 delay(100 )
9090 contentFocusRequester.requestFocus()
9191 }
@@ -175,7 +175,7 @@ fun ReportScreenContainer(
175175 ) { submitState ->
176176 when (submitState) {
177177 SubmitState .IDLE -> {
178- ReportScreen (
178+ ReportWriteScreen (
179179 uiState = uiState,
180180 contentFocusRequester = contentFocusRequester,
181181 onReportTitleChange = viewModel::updateReportTitle,
@@ -201,8 +201,8 @@ fun ReportScreenContainer(
201201
202202@OptIn(ExperimentalMaterial3Api ::class )
203203@Composable
204- private fun ReportScreen (
205- uiState : ReportState ,
204+ private fun ReportWriteScreen (
205+ uiState : ReportWriteState ,
206206 contentFocusRequester : FocusRequester ,
207207 onReportTitleChange : (String ) -> Unit ,
208208 onReportContentChange : (String ) -> Unit ,
@@ -281,7 +281,7 @@ private fun ReportScreen(
281281 )
282282
283283 Text (
284- text = " ${uiState.reportTitle.length} / ${ReportState .MAX_TITLE_LENGTH } " ,
284+ text = " ${uiState.reportTitle.length} / ${ReportWriteState .MAX_TITLE_LENGTH } " ,
285285 style = BitnagilTheme .typography.caption1Medium,
286286 color = BitnagilTheme .colors.coolGray80,
287287 textAlign = TextAlign .End ,
@@ -315,7 +315,7 @@ private fun ReportScreen(
315315 ),
316316 placeholder = {
317317 Text (
318- text = " 어떤 위험인지 간단히 설명해주세요.(${ReportState .MAX_CONTENT_LENGTH } 자 내외)" ,
318+ text = " 어떤 위험인지 간단히 설명해주세요.(${ReportWriteState .MAX_CONTENT_LENGTH } 자 내외)" ,
319319 style = BitnagilTheme .typography.body2Medium,
320320 color = BitnagilTheme .colors.coolGray80,
321321 )
@@ -324,7 +324,7 @@ private fun ReportScreen(
324324 )
325325
326326 Text (
327- text = " ${uiState.reportContent.length} / ${ReportState .MAX_CONTENT_LENGTH } " ,
327+ text = " ${uiState.reportContent.length} / ${ReportWriteState .MAX_CONTENT_LENGTH } " ,
328328 style = BitnagilTheme .typography.caption1Medium,
329329 color = BitnagilTheme .colors.coolGray80,
330330 textAlign = TextAlign .End ,
@@ -358,8 +358,8 @@ private fun ReportScreen(
358358@Preview(showBackground = true )
359359@Composable
360360private fun Preview () {
361- ReportScreen (
362- uiState = ReportState .Init ,
361+ ReportWriteScreen (
362+ uiState = ReportWriteState .Init ,
363363 contentFocusRequester = remember { FocusRequester () },
364364 onReportTitleChange = {},
365365 onReportContentChange = {},
0 commit comments