Skip to content

Commit

Permalink
minor update
Browse files Browse the repository at this point in the history
  • Loading branch information
Mohanraj293 committed Dec 18, 2023
1 parent 5ab8204 commit 2d19704
Showing 1 changed file with 1 addition and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,8 @@ import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.height
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.size
import androidx.compose.foundation.layout.width
import androidx.compose.runtime.Composable
import androidx.compose.runtime.getValue
import androidx.compose.ui.Alignment
Expand Down Expand Up @@ -99,9 +97,7 @@ fun TUILoader(
Image(
modifier = Modifier
.testTag(tags.loaderImageTag)
.size(loaderStyle.iconSize)
.width(loaderStyle.iconSize)
.height(loaderStyle.iconSize),
.size(loaderStyle.iconSize),
painter = painterResource(id = spinnerImage.resourceId),
contentDescription = spinnerImage.contentDescription
)
Expand Down Expand Up @@ -200,7 +196,6 @@ fun LoaderPreviewWithImage() {
.background(TUITheme.colors.surface),
contentAlignment = Alignment.Center
) {

Row {
TUILoader(
loaderStyle = S,
Expand All @@ -209,20 +204,6 @@ fun LoaderPreviewWithImage() {
contentDescription = "",
)
)
TUILoader(
loaderStyle = M,
spinnerImage = TUILoaderSpinnerImage(
resourceId = R.drawable.keyboard_arrow_right,
contentDescription = "",
)
)
TUILoader(
loaderStyle = L,
spinnerImage = TUILoaderSpinnerImage(
resourceId = R.drawable.keyboard_arrow_right,
contentDescription = "",
)
)
}
}
}
Expand Down

0 comments on commit 2d19704

Please sign in to comment.