File tree Expand file tree Collapse file tree 2 files changed +18
-7
lines changed Expand file tree Collapse file tree 2 files changed +18
-7
lines changed Original file line number Diff line number Diff line change @@ -12,8 +12,8 @@ import { SafeAreaView } from 'react-native-safe-area-context';
12
12
13
13
import styles from './styles' ;
14
14
import Icon from '../../../../assets/icons' ;
15
- import ContentCard from '../../../components/ContentCard/ContentCard' ;
16
15
import HorizontalLine from '../../../components/HorizontalLine/HorizontalLine' ;
16
+ import PreviewCard from '../../../components/PreviewCard/PreviewCard' ;
17
17
import {
18
18
fetchAuthor ,
19
19
fetchAuthorStoryPreviews ,
@@ -83,7 +83,9 @@ function AuthorScreen() {
83
83
< Text style = { styles . name } >
84
84
{ authorInfo ? authorInfo . name : '' }
85
85
</ Text >
86
- < Text > { authorInfo ? authorInfo . pronouns : ' ' } </ Text >
86
+ < Text style = { styles . pronouns } >
87
+ { authorInfo ? authorInfo . pronouns : ' ' }
88
+ </ Text >
87
89
</ View >
88
90
< HorizontalLine />
89
91
@@ -116,10 +118,16 @@ function AuthorScreen() {
116
118
117
119
{ authorStoryPreview
118
120
? authorStoryPreview . map ( story => (
119
- < ContentCard
121
+ < PreviewCard
122
+ key = { story . title }
120
123
title = { story . title }
121
- author = { story . author_name }
122
124
image = { story . featured_media }
125
+ author = { story . author_name }
126
+ authorImage = { story . author_image }
127
+ excerpt = { story . excerpt }
128
+ tags = { story . genre_medium
129
+ . concat ( story . tone )
130
+ . concat ( story . topic ) }
123
131
pressFunction = { ( ) =>
124
132
router . push ( {
125
133
pathname : '/story' ,
Original file line number Diff line number Diff line change @@ -12,12 +12,12 @@ const styles = StyleSheet.create({
12
12
name : {
13
13
paddingTop : 15 ,
14
14
fontWeight : 'bold' ,
15
- fontSize : 20 ,
15
+ fontSize : 25 ,
16
16
fontFamily : 'Avenir' ,
17
17
} ,
18
18
image : {
19
- height : 76 ,
20
- width : 84 ,
19
+ height : 68 ,
20
+ width : 68 ,
21
21
backgroundColor : colors . darkGrey ,
22
22
borderRadius : 4 ,
23
23
marginBottom : 12 ,
@@ -63,6 +63,9 @@ const styles = StyleSheet.create({
63
63
paddingTop : 10 ,
64
64
fontWeight : 'bold' ,
65
65
} ,
66
+ pronouns : {
67
+ color : '#797979' ,
68
+ } ,
66
69
} ) ;
67
70
68
71
export default styles ;
You can’t perform that action at this time.
0 commit comments