It seems that Vectors.kt file is redundant in the ...
# compose
v
It seems that Vectors.kt file is redundant in the projects JetNews (dev-07). A navigation button could seen as:
Copy code
navigationIcon = {
                        IconButton(onClick =  {
                            scaffoldState.drawerState = DrawerState.Opened
                            },
                            children = {
                                        Icon(icon = vectorResource(id = R.drawable.ic_jetnews_logo), tint = Color.White)
                                    }
                                )
//                        VectorImageButton(R.drawable.ic_jetnews_logo) {
//                            scaffoldState.drawerState = DrawerState.Opened
//                        }
                    }
And VectorImage could be replaced to:
Copy code
Icon(icon = vectorResource(id = R.drawable.ic_bookmarked))
//VectorImage(id = R.drawable.ic_bookmarked)
k
Thanks for that, I had copied that into my project and the Icon works perfectly. :)
v
Good luck