Updated on 2026-08-14
This commit is contained in:
parent
8a4cf5155c
commit
55bda27036
13 changed files with 53 additions and 36 deletions
|
|
@ -0,0 +1,15 @@
|
|||
package com.tangem.domain.settings
|
||||
|
||||
import arrow.core.Either
|
||||
import com.tangem.domain.settings.repositories.SettingsRepository
|
||||
|
||||
class SetSaveWalletScreenShownUseCase(
|
||||
private val settingsRepository: SettingsRepository,
|
||||
) {
|
||||
|
||||
suspend operator fun invoke(): Either<Throwable, Unit> {
|
||||
return Either.catch {
|
||||
settingsRepository.setShouldShowSaveUserWalletScreen(value = false)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -4,6 +4,8 @@ interface SettingsRepository {
|
|||
|
||||
suspend fun shouldShowSaveUserWalletScreen(): Boolean
|
||||
|
||||
suspend fun setShouldShowSaveUserWalletScreen(value: Boolean)
|
||||
|
||||
suspend fun isWalletScrollPreviewEnabled(): Boolean
|
||||
|
||||
suspend fun setWalletScrollPreviewAvailability(isEnabled: Boolean)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue