vk.com -> vk.ru
This commit is contained in:
+2
@@ -50,6 +50,7 @@ import androidx.compose.ui.text.input.TextFieldValue
|
||||
import androidx.compose.ui.tooling.preview.Preview
|
||||
import androidx.compose.ui.unit.dp
|
||||
import androidx.lifecycle.compose.collectAsStateWithLifecycle
|
||||
import androidx.lifecycle.viewmodel.compose.LocalViewModelStoreOwner
|
||||
import coil.compose.AsyncImage
|
||||
import dev.meloda.fast.auth.captcha.CaptchaViewModel
|
||||
import dev.meloda.fast.auth.captcha.CaptchaViewModelImpl
|
||||
@@ -66,6 +67,7 @@ fun CaptchaRoute(
|
||||
onResult: (String) -> Unit,
|
||||
viewModel: CaptchaViewModel = koinViewModel<CaptchaViewModelImpl>()
|
||||
) {
|
||||
LocalViewModelStoreOwner.current
|
||||
val screenState by viewModel.screenState.collectAsStateWithLifecycle()
|
||||
val isNeedToOpenLogin by viewModel.isNeedToOpenLogin.collectAsStateWithLifecycle()
|
||||
|
||||
|
||||
@@ -3,6 +3,7 @@ package dev.meloda.fast.auth.login.navigation
|
||||
import androidx.compose.runtime.LaunchedEffect
|
||||
import androidx.compose.runtime.getValue
|
||||
import androidx.lifecycle.compose.collectAsStateWithLifecycle
|
||||
import androidx.lifecycle.viewmodel.compose.LocalViewModelStoreOwner
|
||||
import androidx.navigation.NavBackStackEntry
|
||||
import androidx.navigation.NavController
|
||||
import androidx.navigation.NavGraphBuilder
|
||||
|
||||
@@ -393,7 +393,7 @@ fun LoginScreen(
|
||||
TextButton(
|
||||
onClick = {
|
||||
context.startActivity(
|
||||
Intent(Intent.ACTION_VIEW, "https://vk.com/join".toUri())
|
||||
Intent(Intent.ACTION_VIEW, "https://vk.ru/join".toUri())
|
||||
)
|
||||
}
|
||||
) {
|
||||
@@ -408,7 +408,7 @@ fun LoginScreen(
|
||||
TextButton(
|
||||
onClick = {
|
||||
context.startActivity(
|
||||
Intent(Intent.ACTION_VIEW, "https://vk.com/restore".toUri())
|
||||
Intent(Intent.ACTION_VIEW, "https://vk.ru/restore".toUri())
|
||||
)
|
||||
}
|
||||
) {
|
||||
|
||||
Reference in New Issue
Block a user