From aa6b50af23cf3aa463f0599c3229fbc300cfae25 Mon Sep 17 00:00:00 2001 From: mangbaam Date: Wed, 11 Dec 2024 16:23:58 +0900 Subject: [PATCH] =?UTF-8?q?Boolti-350=20feat:=20=EA=B3=B5=EC=97=B0=20?= =?UTF-8?q?=EA=B4=80=EB=A6=AC=20=EC=84=B9=EC=85=98=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../boolti/presentation/screen/my/MyScreen.kt | 17 ++++++++-- .../src/main/res/drawable/ic_manage_show.xml | 31 +++++++++++++++++++ presentation/src/main/res/values/strings.xml | 1 + 3 files changed, 46 insertions(+), 3 deletions(-) create mode 100644 presentation/src/main/res/drawable/ic_manage_show.xml diff --git a/presentation/src/main/java/com/nexters/boolti/presentation/screen/my/MyScreen.kt b/presentation/src/main/java/com/nexters/boolti/presentation/screen/my/MyScreen.kt index c3ba4ba9..44c13649 100644 --- a/presentation/src/main/java/com/nexters/boolti/presentation/screen/my/MyScreen.kt +++ b/presentation/src/main/java/com/nexters/boolti/presentation/screen/my/MyScreen.kt @@ -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 @@ -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, @@ -93,7 +98,8 @@ fun MyScreen( onClickHeaderButton: () -> Unit = {}, onClickAccountSetting: () -> Unit = {}, onClickReservations: () -> Unit = {}, - onClickRegisterShow: () -> Unit = { }, + onClickManageShow: () -> Unit = {}, + onClickRegisterShow: () -> Unit = {}, onClickQrScan: () -> Unit = {}, ) { val scrollState = rememberScrollState() @@ -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), diff --git a/presentation/src/main/res/drawable/ic_manage_show.xml b/presentation/src/main/res/drawable/ic_manage_show.xml new file mode 100644 index 00000000..b961d80d --- /dev/null +++ b/presentation/src/main/res/drawable/ic_manage_show.xml @@ -0,0 +1,31 @@ + + + + + + + + diff --git a/presentation/src/main/res/values/strings.xml b/presentation/src/main/res/values/strings.xml index 3aa95abd..626bf778 100644 --- a/presentation/src/main/res/values/strings.xml +++ b/presentation/src/main/res/values/strings.xml @@ -263,6 +263,7 @@ 원하는 공연 티켓을 예매해보세요! 로그아웃 결제 내역 + 공연 관리 입장 확인 정말 로그아웃 하시겠어요? 공연 등록