Skip to content

Commit

Permalink
Ui Enhace
Browse files Browse the repository at this point in the history
  • Loading branch information
KhubaibKhan4 authored Aug 14, 2024
1 parent 8987695 commit 112449d
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.height
Expand Down Expand Up @@ -107,11 +107,12 @@ class ProfileScreen : Screen {
val error = (productState as ResultState.Error).error
ErrorBox(error)
}

ResultState.Loading -> {
//LoadingBox()
}


is ResultState.Success -> {
val products = (productState as ResultState.Success).response
productList =
Expand All @@ -134,6 +135,7 @@ class ProfileScreen : Screen {
userData = products
}
}

val userName = userData?.username.toString() ?: "@am_pablo"
val fullName = userData?.fullName.toString() ?: "Pablo Valdes"
val profileImage: Resource<Painter> =
Expand Down Expand Up @@ -414,4 +416,4 @@ class ProfileScreen : Screen {
)
}
}
}
}

0 comments on commit 112449d

Please sign in to comment.