From e3c3a929f3ae4df21bacd9398b896462ba5898d6 Mon Sep 17 00:00:00 2001 From: Patryk Michalik Date: Thu, 7 Jul 2022 16:03:13 +0200 Subject: [PATCH] Remove usages of undefined `Destinations.Home` string from code samples in Navigation Material documentation --- docs/navigation-material.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/navigation-material.md b/docs/navigation-material.md index 55323accf..987684a4d 100644 --- a/docs/navigation-material.md +++ b/docs/navigation-material.md @@ -31,7 +31,7 @@ This features composable bottom sheet destinations. val bottomSheetNavigator = rememberBottomSheetNavigator() val navController = rememberNavController(bottomSheetNavigator) ModalBottomSheetLayout(bottomSheetNavigator) { - NavHost(navController, Destinations.Home) { + NavHost(navController, "home") { // We'll define our graph here in a bit! } } @@ -46,7 +46,7 @@ This features composable bottom sheet destinations. val bottomSheetNavigator = rememberBottomSheetNavigator() val navController = rememberNavController(bottomSheetNavigator) ModalBottomSheetLayout(bottomSheetNavigator) { - NavHost(navController, Destinations.Home) { + NavHost(navController, "home") { composable(route = "home") { ... }