Skip to content

Commit

Permalink
refactor/#210 : 사진 갯수 상수화
Browse files Browse the repository at this point in the history
  • Loading branch information
shinythinking committed Dec 4, 2024
1 parent 28c984d commit 5d42f44
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,5 @@ object HomeConstant {
const val EXTRA_RANGE = 0.01 // 약 1 ~ 1.5km
const val MOCK_IMAGE_URL =
"https://github.com/user-attachments/assets/411506ef-5fbf-4c6b-b68d-d00343a0b50e"
const val MAX_NUM_OF_PHOTOS = 4
}
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ import com.boostcamp.mapisode.designsystem.compose.menu.MapisodeDropdownMenuItem
import com.boostcamp.mapisode.designsystem.compose.topbar.TopAppBar
import com.boostcamp.mapisode.designsystem.theme.MapisodeTextStyle
import com.boostcamp.mapisode.designsystem.theme.MapisodeTheme
import com.boostcamp.mapisode.home.common.HomeConstant.MAX_NUM_OF_PHOTOS
import com.boostcamp.mapisode.model.EpisodeLatLng
import com.boostcamp.mapisode.ui.photopicker.MapisodePhotoPicker
import com.naver.maps.map.CameraPosition
Expand Down Expand Up @@ -527,7 +528,7 @@ fun PictureSelectionScreen(
contentAlignment = Alignment.Center,
) {
MapisodePhotoPicker(
numOfPhoto = 4,
numOfPhoto = MAX_NUM_OF_PHOTOS,
onPhotoSelected = { photoInfo ->
onPickPhotos(photoInfo.map { it.uri.toUri() }.toPersistentList())
},
Expand Down

0 comments on commit 5d42f44

Please sign in to comment.