Skip to content

Commit

Permalink
[#682] Use class simpleName in top app bar code implementation instea…
Browse files Browse the repository at this point in the history
…d of String
  • Loading branch information
paulinea committed Nov 9, 2023
1 parent 33f8307 commit a419a22
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ import com.orange.ods.app.ui.utilities.composable.*
import com.orange.ods.compose.OdsComposable
import com.orange.ods.compose.component.appbar.top.OdsTopAppBarActionButtonBuilder
import com.orange.ods.compose.component.appbar.top.OdsTopAppBarNavigationIconBuilder
import com.orange.ods.compose.component.appbar.top.OdsTopAppBarOverflowMenuActionItemBuilder
import com.orange.ods.compose.component.chip.OdsChoiceChipBuilder
import com.orange.ods.compose.component.chip.OdsChoiceChipsFlowRow
import com.orange.ods.compose.component.list.OdsListItem
Expand Down Expand Up @@ -120,7 +121,7 @@ fun ComponentTopAppBar(variant: Variant) {
list("overflowMenuActions") {
for (i in 1..2) {
// The classInstance method displays the original type of type aliases, that's why function is used instead
function("OdsTopAppBarOverflowMenuActionItem") {
function(OdsTopAppBarOverflowMenuActionItemBuilder::class.java.simpleName) {
text("Menu $i")
onClick()
}
Expand Down

0 comments on commit a419a22

Please sign in to comment.