From 51ebef3d8d00738ef441b90627af0373e35921bc Mon Sep 17 00:00:00 2001 From: Carlos Martins Date: Wed, 21 Feb 2024 08:53:15 -0700 Subject: [PATCH 1/2] use RadioListItem --- .../settings/Profile/CustomStatus/StatusClearAfterPage.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pages/settings/Profile/CustomStatus/StatusClearAfterPage.js b/src/pages/settings/Profile/CustomStatus/StatusClearAfterPage.js index 61208447495d..8354734701cd 100644 --- a/src/pages/settings/Profile/CustomStatus/StatusClearAfterPage.js +++ b/src/pages/settings/Profile/CustomStatus/StatusClearAfterPage.js @@ -8,7 +8,7 @@ import FormProvider from '@components/Form/FormProvider'; import HeaderWithBackButton from '@components/HeaderWithBackButton'; import MenuItemWithTopDescription from '@components/MenuItemWithTopDescription'; import ScreenWrapper from '@components/ScreenWrapper'; -import BaseListItem from '@components/SelectionList/BaseListItem'; +import RadioListItem from '@components/SelectionList/RadioListItem'; import Text from '@components/Text'; import withCurrentUserPersonalDetails, {withCurrentUserPersonalDetailsDefaultProps} from '@components/withCurrentUserPersonalDetails'; import withLocalize from '@components/withLocalize'; @@ -157,9 +157,9 @@ function StatusClearAfterPage({currentUserPersonalDetails, customStatus}) { const timePeriodOptions = useCallback( () => _.map(statusType, (item, index) => ( - updateMode(item)} showTooltip={false} isFocused={item.isSelected} From 79d50e476c5ec6b550c94220c23adccfe190a904 Mon Sep 17 00:00:00 2001 From: Carlos Martins Date: Wed, 21 Feb 2024 09:38:28 -0700 Subject: [PATCH 2/2] rm keyForList --- .../settings/Profile/CustomStatus/StatusClearAfterPage.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/pages/settings/Profile/CustomStatus/StatusClearAfterPage.js b/src/pages/settings/Profile/CustomStatus/StatusClearAfterPage.js index 8354734701cd..290d6431492d 100644 --- a/src/pages/settings/Profile/CustomStatus/StatusClearAfterPage.js +++ b/src/pages/settings/Profile/CustomStatus/StatusClearAfterPage.js @@ -156,10 +156,9 @@ function StatusClearAfterPage({currentUserPersonalDetails, customStatus}) { const timePeriodOptions = useCallback( () => - _.map(statusType, (item, index) => ( + _.map(statusType, (item) => ( updateMode(item)} showTooltip={false} isFocused={item.isSelected}