Skip to content

Commit

Permalink
- Fixing DesignSystem Lint Error
Browse files Browse the repository at this point in the history
  • Loading branch information
niyajali committed Aug 25, 2024
1 parent 56c185d commit bd9a8f2
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 17 deletions.
3 changes: 0 additions & 3 deletions ci-prebuild.bat
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@ call :run_gradle_task "spotlessApply --no-configuration-cache"
call :run_gradle_task "dependencyGuardBaseline"
call :run_gradle_task "detekt"
call :run_gradle_task "testDemoDebug :lint:test :mifospay:lintProdRelease :lint:lint"
call :run_gradle_task ":lint:test :mifospay:lintProdRelease :lint:lint"
call :run_gradle_task ":mifospay:lintProdRelease"
call :run_gradle_task ":lint:lint"
call :run_gradle_task "build"
call :run_gradle_task "updateProdReleaseBadging"

Expand Down
5 changes: 1 addition & 4 deletions ci-prebuild.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,7 @@ tasks=(
"spotlessApply --no-configuration-cache"
"dependencyGuardBaseline"
"detekt"
"testDemoDebug"
":lint:test"
":lint:lint"
":mifospay:lintProdRelease"
"testDemoDebug :lint:test :lint:lint :mifospay:lintProdRelease"
"build"
"updateProdReleaseBadging"
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import androidx.compose.material.icons.filled.ArrowDropDown
import androidx.compose.material.icons.filled.ArrowOutward
import androidx.compose.material.icons.filled.Camera
import androidx.compose.material.icons.filled.Check
import androidx.compose.material.icons.filled.ChevronRight
import androidx.compose.material.icons.filled.Close
import androidx.compose.material.icons.filled.ContentCopy
import androidx.compose.material.icons.filled.Delete
Expand Down Expand Up @@ -52,6 +53,7 @@ import androidx.compose.ui.graphics.vector.ImageVector
* Mifos icons. Material icons are [ImageVector]s, custom icons are drawable resource IDs.
*/
object MifosIcons {
val ChevronRight: ImageVector = Icons.Filled.ChevronRight
val QrCode: ImageVector = Icons.Filled.QrCode
val Close: ImageVector = Icons.Filled.Close
val VisibilityOff: ImageVector = Icons.Filled.VisibilityOff
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@ import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.filled.ChevronRight
import androidx.compose.material3.Button
import androidx.compose.material3.ButtonDefaults
import androidx.compose.material3.Icon
import androidx.compose.material3.MaterialTheme
Expand All @@ -31,7 +28,9 @@ import androidx.compose.ui.res.stringResource
import androidx.compose.ui.tooling.preview.Preview
import androidx.compose.ui.unit.dp
import com.mifospay.core.model.domain.BankAccountDetails
import org.mifospay.core.designsystem.component.MifosButton
import org.mifospay.core.designsystem.component.MifosTopBar
import org.mifospay.core.designsystem.icon.MifosIcons
import org.mifospay.feature.bank.accounts.R

@Composable
Expand Down Expand Up @@ -194,7 +193,7 @@ private fun BankAccountDetailButton(
hasTrailingIcon: Boolean = false,
) {
if (isUpiEnabled) {
Button(
MifosButton(
onClick = { onClick.invoke() },
colors = ButtonDefaults.buttonColors(MaterialTheme.colorScheme.primary),
modifier = modifier
Expand All @@ -213,7 +212,7 @@ private fun BankAccountDetailButton(
)
if (hasTrailingIcon) {
Icon(
imageVector = Icons.Filled.ChevronRight,
imageVector = MifosIcons.ChevronRight,
contentDescription = null,
tint = MaterialTheme.colorScheme.onPrimary,
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@ import androidx.compose.foundation.layout.size
import androidx.compose.foundation.rememberScrollState
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.foundation.verticalScroll
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.filled.Search
import androidx.compose.material3.CardDefaults
import androidx.compose.material3.ExperimentalMaterial3Api
import androidx.compose.material3.HorizontalDivider
Expand Down Expand Up @@ -183,7 +181,7 @@ private fun BankListScreenContent(
.fillMaxWidth()
.padding(horizontal = 16.dp),
trailingIcon = {
Icon(imageVector = Icons.Filled.Search, contentDescription = null)
Icon(imageVector = MifosIcons.Search, contentDescription = null)
},
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import androidx.compose.foundation.layout.height
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.foundation.text.KeyboardActions
import androidx.compose.material3.Button
import androidx.compose.material3.ExperimentalMaterial3Api
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.OutlinedTextFieldDefaults
Expand Down Expand Up @@ -48,6 +47,7 @@ import com.maxkeppeler.sheets.calendar.models.CalendarSelection
import com.maxkeppeler.sheets.calendar.models.CalendarStyle
import com.mifos.library.countrycodepicker.CountryCodePicker
import org.mifospay.core.designsystem.component.MfOverlayLoadingWheel
import org.mifospay.core.designsystem.component.MifosButton
import org.mifospay.core.designsystem.component.MifosOutlinedTextField
import org.mifospay.core.designsystem.theme.MifosTheme
import org.mifospay.kyc.R
Expand Down Expand Up @@ -236,7 +236,7 @@ private fun Kyc1Form(
)
}

Button(
MifosButton(
onClick = {
submitData(kycDetails)
},
Expand Down

0 comments on commit bd9a8f2

Please sign in to comment.