Skip to content

Commit 8ed5d26

Browse files
committed
fix: don't stretch view to full screen height
1 parent 91c5f0c commit 8ed5d26

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

app/components/Views/Notifications/NotificationsCategory/NotificationsCategory.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import {
44
SegmentButton,
55
SegmentGroup,
66
} from '@metamask/design-system-react-native';
7+
import { useTailwind } from '@metamask/design-system-twrnc-preset';
78

89
import { strings } from '../../../../../locales/i18n';
910
import { selectIsMetamaskNotificationsEnabled } from '../../../../selectors/notifications';
@@ -32,6 +33,7 @@ const NotificationsCategory = ({
3233
onSelect,
3334
testID,
3435
}: NotificationsCategoryProps) => {
36+
const tw = useTailwind();
3537
const isMetamaskNotificationsEnabled = useSelector(
3638
selectIsMetamaskNotificationsEnabled,
3739
);
@@ -99,6 +101,7 @@ const NotificationsCategory = ({
99101
value={selectedCategory}
100102
onChange={handleSelect}
101103
twClassName="gap-2 px-4 py-1"
104+
style={tw.style('flex-grow-0')}
102105
testID={testID ?? NotificationsCategorySelectorsIDs.CONTAINER}
103106
>
104107
{tabs.map((tab) => (

0 commit comments

Comments
 (0)