mirror of
				https://github.com/mihonapp/mihon.git
				synced 2025-11-04 08:08:55 +01:00 
			
		
		
		
	Use Compose on Global/Migrate Search screen (#8631)
* Use Compose on Global/Migrate Search screen - Refactor to use Voyager and Compose - Use sealed class for state - Somethings are broken/missing due to screens using different navigation libraries * Review changes
This commit is contained in:
		@@ -10,3 +10,13 @@ data class MangaCover(
 | 
			
		||||
    val url: String?,
 | 
			
		||||
    val lastModified: Long,
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
fun Manga.asMangaCover(): MangaCover {
 | 
			
		||||
    return MangaCover(
 | 
			
		||||
        mangaId = id,
 | 
			
		||||
        sourceId = source,
 | 
			
		||||
        isMangaFavorite = favorite,
 | 
			
		||||
        url = thumbnailUrl,
 | 
			
		||||
        lastModified = coverLastModified,
 | 
			
		||||
    )
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user