diff --git a/common/src/commonMain/kotlin/org/hisp/dhis/common/App.kt b/common/src/commonMain/kotlin/org/hisp/dhis/common/App.kt index 4b270aa1d..2b5d16646 100644 --- a/common/src/commonMain/kotlin/org/hisp/dhis/common/App.kt +++ b/common/src/commonMain/kotlin/org/hisp/dhis/common/App.kt @@ -35,8 +35,8 @@ import org.hisp.dhis.common.screens.InputLongTextScreen import org.hisp.dhis.common.screens.InputNegativeIntegerScreen import org.hisp.dhis.common.screens.InputNumberScreen import org.hisp.dhis.common.screens.InputPercentageScreen -import org.hisp.dhis.common.screens.InputPositiveIntegerScreen import org.hisp.dhis.common.screens.InputPositiveIntegerOrZeroScreen +import org.hisp.dhis.common.screens.InputPositiveIntegerScreen import org.hisp.dhis.common.screens.InputScreen import org.hisp.dhis.common.screens.InputTextScreen import org.hisp.dhis.common.screens.LegendDescriptionScreen diff --git a/common/src/commonMain/kotlin/org/hisp/dhis/common/screens/InputPositiveIntegerOrZeroScreen.kt b/common/src/commonMain/kotlin/org/hisp/dhis/common/screens/InputPositiveIntegerOrZeroScreen.kt index aedb28225..356404341 100644 --- a/common/src/commonMain/kotlin/org/hisp/dhis/common/screens/InputPositiveIntegerOrZeroScreen.kt +++ b/common/src/commonMain/kotlin/org/hisp/dhis/common/screens/InputPositiveIntegerOrZeroScreen.kt @@ -105,7 +105,7 @@ fun InputPositiveIntegerOrZeroScreen() { SupportingTextData("Supporting text", SupportingTextState.WARNING), SupportingTextData("Supporting text", SupportingTextState.ERROR), - ), + ), legendData = LegendData(SurfaceColor.CustomGreen, "Legend"), state = InputShellState.ERROR, imeAction = ImeAction.Done, @@ -156,4 +156,4 @@ fun InputPositiveIntegerOrZeroScreen() { }, ) } -} \ No newline at end of file +} diff --git a/designsystem/src/commonMain/kotlin/org/hisp/dhis/mobile/ui/designsystem/component/InputPositiveIntegerOrZero.kt b/designsystem/src/commonMain/kotlin/org/hisp/dhis/mobile/ui/designsystem/component/InputPositiveIntegerOrZero.kt index 0e5f71b63..3753dd91f 100644 --- a/designsystem/src/commonMain/kotlin/org/hisp/dhis/mobile/ui/designsystem/component/InputPositiveIntegerOrZero.kt +++ b/designsystem/src/commonMain/kotlin/org/hisp/dhis/mobile/ui/designsystem/component/InputPositiveIntegerOrZero.kt @@ -111,4 +111,4 @@ fun InputPositiveIntegerOrZero( ) }, ) -} \ No newline at end of file +} diff --git a/designsystem/src/desktopTest/kotlin/org/hisp/dhis/mobile/ui/designsystem/component/InputPositiveIntegerOrZeroTest.kt b/designsystem/src/desktopTest/kotlin/org/hisp/dhis/mobile/ui/designsystem/component/InputPositiveIntegerOrZeroTest.kt index f1817be46..45069ad3b 100644 --- a/designsystem/src/desktopTest/kotlin/org/hisp/dhis/mobile/ui/designsystem/component/InputPositiveIntegerOrZeroTest.kt +++ b/designsystem/src/desktopTest/kotlin/org/hisp/dhis/mobile/ui/designsystem/component/InputPositiveIntegerOrZeroTest.kt @@ -190,6 +190,7 @@ class InputPositiveIntegerOrZeroTest { rule.onNodeWithTag("INPUT_POSITIVE_INTEGER_OR_ZERO_FIELD").performTextInput("012") rule.onNodeWithTag("INPUT_POSITIVE_INTEGER_OR_ZERO_FIELD").assert(hasText("")) } + @Test fun shouldAllowZero() { rule.setContent { @@ -208,4 +209,4 @@ class InputPositiveIntegerOrZeroTest { rule.onNodeWithTag("INPUT_POSITIVE_INTEGER_OR_ZERO_FIELD").performTextInput("0") rule.onNodeWithTag("INPUT_POSITIVE_INTEGER_OR_ZERO_FIELD").assert(hasText("0")) } -} \ No newline at end of file +}