Refactor styles

Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
2023-07-26 10:14:01 +03:00
parent caa98736e9
commit abe1c0847d
22 changed files with 261 additions and 328 deletions

View File

@@ -12,7 +12,6 @@ import { Meme } from '../../../database';
import { RootState } from '../../../state';
import { VIEW } from '../../../types';
import { getFlashListItemHeight } from '../../../utilities';
import styles from '../../../styles';
import MemesMasonryItem from './memesMasonryItem';
import MemesGridItem from './memesGridItem';
import MemesListItem from './memesListItem';
@@ -22,6 +21,7 @@ const sharedMemesListStyles = StyleSheet.create({
paddingBottom: 100,
},
helperText: {
textAlign: 'center',
marginVertical: 15,
},
});
@@ -89,9 +89,7 @@ const MemesList = ({
...memesMasonryListStyles.flashList,
}}
ListEmptyComponent={() => (
<HelperText
type={'info'}
style={[sharedMemesListStyles.helperText, styles.centerText]}>
<HelperText type={'info'} style={sharedMemesListStyles.helperText}>
No memes found
</HelperText>
)}
@@ -119,9 +117,7 @@ const MemesList = ({
...memesGridListStyles.flashList,
}}
ListEmptyComponent={() => (
<HelperText
type={'info'}
style={[sharedMemesListStyles.helperText, styles.centerText]}>
<HelperText type={'info'} style={sharedMemesListStyles.helperText}>
No memes found
</HelperText>
)}
@@ -149,9 +145,7 @@ const MemesList = ({
...memesListListStyles.flashList,
}}
ListEmptyComponent={() => (
<HelperText
type={'info'}
style={[sharedMemesListStyles.helperText, styles.centerText]}>
<HelperText type={'info'} style={sharedMemesListStyles.helperText}>
No memes found
</HelperText>
)}