Skip to content

Commit 1dda081

Browse files
Improve layout
1 parent 2c79d6e commit 1dda081

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/views/navigation/screens/FirmwareListScreen.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import type { PropsWithNavigation } from '@/views/navigation/NavigationStack';
55
import { StyledSafeAreaView } from '@/style';
66
import { Box } from 'react-native-flex-layout';
77
import { useAppSelector } from '@/store';
8-
import { ScrollView } from 'react-native';
8+
import { ScrollView, View } from 'react-native';
99
import FirmwareListItem from '@/components/firmware/FirmwareListItem';
1010
import { useTranslation } from 'react-i18next';
1111
import useDtuState from '@/hooks/useDtuState';
@@ -53,7 +53,7 @@ const FirmwareListScreen: FC<PropsWithNavigation> = ({ navigation }) => {
5353
style={{ width: '100%' }}
5454
>
5555
{newReleases.length ? (
56-
<>
56+
<View style={{ marginBottom: 16 }}>
5757
<Box style={{ marginHorizontal: 4 }}>
5858
<Text variant="titleLarge">{t('firmwares.newReleases')}</Text>
5959
</Box>
@@ -64,10 +64,10 @@ const FirmwareListScreen: FC<PropsWithNavigation> = ({ navigation }) => {
6464
latestReleaseTag={latestReleaseTag}
6565
/>
6666
))}
67-
</>
67+
</View>
6868
) : null}
6969
{outdatedReleases.length ? (
70-
<>
70+
<View>
7171
<Box style={{ marginHorizontal: 4 }}>
7272
<Text variant="titleLarge">
7373
{t('firmwares.outdatedReleases')}
@@ -80,7 +80,7 @@ const FirmwareListScreen: FC<PropsWithNavigation> = ({ navigation }) => {
8080
latestReleaseTag={latestReleaseTag}
8181
/>
8282
))}
83-
</>
83+
</View>
8484
) : null}
8585
{newReleases.length === 0 && outdatedReleases.length === 0 ? (
8686
<Box style={{ marginHorizontal: 4, flex: 1 }}>

0 commit comments

Comments
 (0)