Skip to content

Commit

Permalink
Boolti-350 feat: 공연 관리 섹션 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
mangbaam committed Dec 11, 2024
1 parent df19aff commit aa6b50a
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@ fun MyScreen(
val user by viewModel.user.collectAsStateWithLifecycle()

val domain = BuildConfig.DOMAIN
val url = "https://${domain}/show/add"
val registrationUrl = "https://${domain}/show/add"
val homeUrl = "https://${domain}/home"
val uriHandler = LocalUriHandler.current
val context = LocalContext.current

Expand All @@ -78,8 +79,12 @@ fun MyScreen(
onClickHeaderButton = if (user != null) navigateToProfile else requireLogin,
onClickAccountSetting = if (user != null) onClickAccountSetting else requireLogin,
onClickReservations = if (user != null) navigateToReservations else requireLogin,
onClickManageShow = {
uriHandler.openUri(homeUrl)
Toast.makeText(context, "공연 관리를 위해 웹으로 이동합니다", Toast.LENGTH_LONG).show()
}, // TODO 추후 인앱 공연 관리 반영 시 처리
onClickRegisterShow = {
uriHandler.openUri(url)
uriHandler.openUri(registrationUrl)
Toast.makeText(context, "공연 등록을 위해 웹으로 이동합니다", Toast.LENGTH_LONG).show()
},// navigateToShowRegistration, // TODO 추후 인앱 공연 등록 반영 시 주석 해제
onClickQrScan = if (user != null) onClickQrScan else requireLogin,
Expand All @@ -93,7 +98,8 @@ fun MyScreen(
onClickHeaderButton: () -> Unit = {},
onClickAccountSetting: () -> Unit = {},
onClickReservations: () -> Unit = {},
onClickRegisterShow: () -> Unit = { },
onClickManageShow: () -> Unit = {},
onClickRegisterShow: () -> Unit = {},
onClickQrScan: () -> Unit = {},
) {
val scrollState = rememberScrollState()
Expand Down Expand Up @@ -150,6 +156,11 @@ fun MyScreen(
label = stringResource(R.string.my_register_show),
onClick = onClickRegisterShow,
)
MyMenu(
iconRes = R.drawable.ic_manage_show,
label = stringResource(R.string.my_manage_show),
onClick = onClickManageShow,
)
MyMenu(
iconRes = R.drawable.ic_qr_simple,
label = stringResource(R.string.my_scan_qr),
Expand Down
31 changes: 31 additions & 0 deletions presentation/src/main/res/drawable/ic_manage_show.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24">
<group>
<clip-path
android:pathData="M0,0h24v24h-24z"/>
<path
android:pathData="M15,2H9C8.448,2 8,2.448 8,3V5C8,5.552 8.448,6 9,6H15C15.552,6 16,5.552 16,5V3C16,2.448 15.552,2 15,2Z"
android:strokeLineJoin="round"
android:strokeWidth="1.5"
android:fillColor="#00000000"
android:strokeColor="#A2A5B4"
android:strokeLineCap="round"/>
<path
android:pathData="M16,4H18C18.53,4 19.039,4.211 19.414,4.586C19.789,4.961 20,5.47 20,6V20C20,20.53 19.789,21.039 19.414,21.414C19.039,21.789 18.53,22 18,22H6C5.47,22 4.961,21.789 4.586,21.414C4.211,21.039 4,20.53 4,20V6C4,5.47 4.211,4.961 4.586,4.586C4.961,4.211 5.47,4 6,4H8"
android:strokeLineJoin="round"
android:strokeWidth="1.5"
android:fillColor="#00000000"
android:strokeColor="#A2A5B4"
android:strokeLineCap="round"/>
<path
android:pathData="M9,14L11,16L15,12"
android:strokeLineJoin="round"
android:strokeWidth="1.5"
android:fillColor="#00000000"
android:strokeColor="#A2A5B4"
android:strokeLineCap="round"/>
</group>
</vector>
1 change: 1 addition & 0 deletions presentation/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,7 @@
<string name="my_login_sub">원하는 공연 티켓을 예매해보세요!</string>
<string name="my_logout">로그아웃</string>
<string name="my_ticketing_history">결제 내역</string>
<string name="my_manage_show">공연 관리</string>
<string name="my_scan_qr">입장 확인</string>
<string name="my_logout_popup">정말 로그아웃 하시겠어요?</string>
<string name="my_register_show">공연 등록</string>
Expand Down

0 comments on commit aa6b50a

Please sign in to comment.