wip
This commit is contained in:
@@ -6,7 +6,7 @@ import kotlinx.serialization.Serializable
|
||||
@Serializable
|
||||
data class Residence(
|
||||
val id: Int,
|
||||
val owner: Int,
|
||||
val owner: Int? = null,
|
||||
@SerialName("owner_username") val ownerUsername: String,
|
||||
val name: String,
|
||||
@SerialName("property_type") val propertyType: String,
|
||||
|
||||
@@ -4,6 +4,7 @@ package com.mycrib.storage
|
||||
* Platform-specific token manager interface for persistent storage.
|
||||
* Each platform implements this using their native storage mechanisms.
|
||||
*/
|
||||
@Suppress("NO_ACTUAL_FOR_EXPECT")
|
||||
expect class TokenManager {
|
||||
fun saveToken(token: String)
|
||||
fun getToken(): String?
|
||||
|
||||
@@ -337,7 +337,7 @@ fun AddResidenceScreen(
|
||||
}
|
||||
},
|
||||
modifier = Modifier.fillMaxWidth(),
|
||||
enabled = createState !is ApiResult.Loading
|
||||
enabled = validateForm()
|
||||
) {
|
||||
if (createState is ApiResult.Loading) {
|
||||
CircularProgressIndicator(
|
||||
|
||||
Reference in New Issue
Block a user