Skip to content

Commit

Permalink
Boolti-348 feat: 공연 등록 외부 브라우저 연결 시 토스트 노출
Browse files Browse the repository at this point in the history
  • Loading branch information
mangbaam committed Nov 27, 2024
1 parent f6e36c0 commit 78fa74e
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.nexters.boolti.presentation.screen.my

import android.widget.Toast
import androidx.annotation.DrawableRes
import androidx.compose.foundation.background
import androidx.compose.foundation.clickable
Expand All @@ -26,6 +27,7 @@ import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.draw.clip
import androidx.compose.ui.graphics.vector.ImageVector
import androidx.compose.ui.platform.LocalContext
import androidx.compose.ui.platform.LocalUriHandler
import androidx.compose.ui.res.stringResource
import androidx.compose.ui.res.vectorResource
Expand Down Expand Up @@ -64,6 +66,7 @@ fun MyScreen(
val domain = BuildConfig.DOMAIN
val url = "https://${domain}/show/add"
val uriHandler = LocalUriHandler.current
val context = LocalContext.current

LaunchedEffect(Unit) {
viewModel.fetchMyInfo()
Expand All @@ -75,7 +78,10 @@ fun MyScreen(
onClickHeaderButton = if (user != null) navigateToProfile else requireLogin,
onClickAccountSetting = if (user != null) onClickAccountSetting else requireLogin,
onClickReservations = if (user != null) navigateToReservations else requireLogin,
onClickRegisterShow = { uriHandler.openUri(url) },// navigateToShowRegistration, // TODO 추후 인앱 공연 등록 반영 시 주석 해제
onClickRegisterShow = {
uriHandler.openUri(url)
Toast.makeText(context, "공연 등록을 위해 웹으로 이동합니다", Toast.LENGTH_LONG).show()
},// navigateToShowRegistration, // TODO 추후 인앱 공연 등록 반영 시 주석 해제
onClickQrScan = if (user != null) onClickQrScan else requireLogin,
)
}
Expand Down

0 comments on commit 78fa74e

Please sign in to comment.