Skip to content

Commit

Permalink
사장님 메뉴가격 등록 UI 생성
Browse files Browse the repository at this point in the history
  • Loading branch information
hsgo2430 committed Jul 9, 2024
1 parent 87e928f commit a3279de
Show file tree
Hide file tree
Showing 21 changed files with 927 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import androidx.compose.ui.Modifier
import androidx.compose.ui.tooling.preview.Preview
import dagger.hilt.android.AndroidEntryPoint
import `in`.koreatech.business.feature.store.MyStoreDetailScreen
import `in`.koreatech.business.feature.storemenu.registermenu.navigator.RegisterMenuNavigator
import `in`.koreatech.business.ui.theme.KOIN_ANDROIDTheme

@AndroidEntryPoint
Expand All @@ -25,8 +26,8 @@ class BusinessMainActivity : ComponentActivity() {
modifier = Modifier.fillMaxSize(),
color = MaterialTheme.colors.background
) {
// InsertStoreNavigator()
MyStoreDetailScreen(modifier = Modifier.fillMaxSize(),)
//MyStoreDetailScreen(modifier = Modifier.fillMaxSize(),)
RegisterMenuNavigator()
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ fun ShowOpenTimeDialog(
onClick = {
operatingTimeDialog.closeDialog()
}) {
Text(stringResource(id = R.string.neutral))
Text(stringResource(id = R.string.cancel))
}
}
)
Expand Down Expand Up @@ -387,7 +387,7 @@ fun ShowCloseTimeDialog(
onClick = {
operatingTimeDialog.closeDialog()
}) {
Text(stringResource(id = R.string.neutral))
Text(stringResource(id = R.string.cancel))
}
}
)
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
package `in`.koreatech.business.feature.storemenu.registermenu.navigator

import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.hilt.navigation.compose.hiltViewModel
import androidx.navigation.NavHostController
import androidx.navigation.compose.NavHost
import androidx.navigation.compose.composable
import androidx.navigation.compose.rememberNavController
import `in`.koreatech.business.feature.storemenu.registermenu.registermenu.RegisterMenuScreen
import `in`.koreatech.business.feature.storemenu.registermenu.registermenu.RegisterMenuViewModel

@Composable
fun RegisterMenuNavigator(
modifier: Modifier = Modifier,
navController: NavHostController = rememberNavController(),
registerMenuViewModel: RegisterMenuViewModel = hiltViewModel()
) {
NavHost(
navController = navController,
startDestination = RegisterMenuRoute.INSERT_MENU.name,
modifier = modifier
) {

composable(
route = RegisterMenuRoute.INSERT_MENU.name,
) {
RegisterMenuScreen(
viewModel = registerMenuViewModel,
onBackPressed = {}
)
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
package `in`.koreatech.business.feature.storemenu.registermenu.navigator

enum class RegisterMenuRoute {
INSERT_MENU,
CHECK_MENU
}
Loading

0 comments on commit a3279de

Please sign in to comment.