|
@@ -1,8 +1,10 @@
|
|
|
package com.example.firstprojectsh.main.components
|
|
|
+import android.annotation.SuppressLint
|
|
|
import androidx.compose.foundation.layout.Arrangement
|
|
|
import androidx.compose.foundation.layout.Column
|
|
|
import androidx.compose.foundation.layout.padding
|
|
|
import androidx.compose.material3.Button
|
|
|
+import androidx.compose.material3.ExperimentalMaterial3Api
|
|
|
import androidx.compose.material3.Icon
|
|
|
import androidx.compose.material3.IconButton
|
|
|
import androidx.compose.material3.Text
|
|
@@ -21,12 +23,14 @@ import androidx.compose.ui.text.input.VisualTransformation
|
|
|
import androidx.compose.ui.tooling.preview.Preview
|
|
|
import androidx.compose.ui.unit.dp
|
|
|
import androidx.compose.ui.unit.sp
|
|
|
+import androidx.navigation.NavHostController
|
|
|
import com.example.firstprojectsh.R
|
|
|
import com.example.firstprojectsh.main.MainViewModel
|
|
|
|
|
|
-@Preview
|
|
|
+
|
|
|
+@SuppressLint("RememberReturnType")
|
|
|
@Composable
|
|
|
-fun auth() {
|
|
|
+fun auth(navController: NavHostController) {
|
|
|
val viewModel = MainViewModel()
|
|
|
val email = remember { mutableStateOf("") }
|
|
|
val password = remember { mutableStateOf("") }
|
|
@@ -73,9 +77,7 @@ fun auth() {
|
|
|
}){
|
|
|
Text("Регистрация", fontSize = 25.sp)
|
|
|
}
|
|
|
- Button(onClick = {
|
|
|
-
|
|
|
- }){
|
|
|
+ Button(onClick = {navController.navigate("ConfirmationEmail ")}){
|
|
|
Text("как гость", fontSize = 25.sp)
|
|
|
}
|
|
|
}
|