This commit is contained in:
Trey t
2025-11-04 12:19:17 -06:00
parent ba27ddda71
commit f2ade0a1e2
5 changed files with 3067 additions and 2 deletions

View File

@@ -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,

View File

@@ -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?

View File

@@ -337,7 +337,7 @@ fun AddResidenceScreen(
}
},
modifier = Modifier.fillMaxWidth(),
enabled = createState !is ApiResult.Loading
enabled = validateForm()
) {
if (createState is ApiResult.Loading) {
CircularProgressIndicator(