Skip to content

Commit

Permalink
Fix wrong naming convention
Browse files Browse the repository at this point in the history
  • Loading branch information
skydoves committed Aug 16, 2024
1 parent a20f724 commit 2d379aa
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@ fun TwitchNavHost(
navController = navHostController,
startDestination = TwitchScreens.Channels.route
) {
whatsAppHomeNavigation()
twitchAppHomeNavigation()
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ import io.getstream.chat.android.twitchclone.livestream.LivestreamStreamer
import io.getstream.chat.android.twitchclone.livestream.LivestreamWatcher
import io.getstream.chat.android.twitchclone.messages.ui.messages.TwitchMessage

fun NavGraphBuilder.whatsAppHomeNavigation() {
fun NavGraphBuilder.twitchAppHomeNavigation() {
composable(route = TwitchScreens.Channels.name) {
val clientInitialisationState
by ChatClient.instance().clientState.initializationState.collectAsState()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,5 @@ interface RewardDao {
suspend fun getRewards(): List<RewardEntity>

@Insert(onConflict = OnConflictStrategy.REPLACE)
suspend fun insertRewards(whatsAppUsers: List<RewardEntity>)
suspend fun insertRewards(rewardEntity: List<RewardEntity>)
}
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ internal object DatabaseModule {

@Provides
@Singleton
fun provideWhatsAppCloneDatabase(
fun provideTwitchCloneDatabase(
@ApplicationContext context: Context
): TwitchDatabase = Room.databaseBuilder(
context,
Expand All @@ -43,9 +43,9 @@ internal object DatabaseModule {

@Provides
@Singleton
fun provideWhatsAppUserDao(
whatsAppCloneDataBase: TwitchDatabase
fun provideTwitchUserDao(
twitchDatabase: TwitchDatabase
): RewardDao {
return whatsAppCloneDataBase.rewardDao()
return twitchDatabase.rewardDao()
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public val LocalComposeNavigator: ProvidableCompositionLocal<AppComposeNavigator
compositionLocalOf {
error(
"No AppComposeNavigator provided! " +
"Make sure to wrap all usages of Vlip components in TwitchTheme."
"Make sure to wrap all usages of UI components in TwitchTheme."
)
}

Expand Down

0 comments on commit 2d379aa

Please sign in to comment.