File tree Expand file tree Collapse file tree 3 files changed +17
-9
lines changed Expand file tree Collapse file tree 3 files changed +17
-9
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,8 @@ export const CardTitle = (props: CardTitleProps) => {
30
30
isUserMatch,
31
31
subheader,
32
32
type,
33
- userRole
33
+ userRole,
34
+ isNewsfeed
34
35
} = props
35
36
36
37
return (
@@ -45,14 +46,18 @@ export const CardTitle = (props: CardTitleProps) => {
45
46
subheader = { subheader }
46
47
type = { type }
47
48
/>
48
- < CardTitleFollowing
49
- billId = { billId }
50
- header = { header }
51
- subheader = { subheader }
52
- isBillMatch = { isBillMatch }
53
- isUserMatch = { isUserMatch }
54
- type = { type }
55
- />
49
+ { isNewsfeed ? (
50
+ < CardTitleFollowing
51
+ billId = { billId }
52
+ header = { header }
53
+ subheader = { subheader }
54
+ isBillMatch = { isBillMatch }
55
+ isUserMatch = { isUserMatch }
56
+ type = { type }
57
+ />
58
+ ) : (
59
+ < > </ >
60
+ ) }
56
61
</ CardBootstrap . Body >
57
62
</ CardBootstrap . Body >
58
63
)
Original file line number Diff line number Diff line change @@ -230,6 +230,7 @@ export default function Newsfeed() {
230
230
testimonyId = { element . testimonyId }
231
231
type = { element . type }
232
232
userRole = { element . userRole }
233
+ isNewsfeed = { "enable newsfeed specific subheading" }
233
234
/>
234
235
</ div >
235
236
) ) }
Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ export const NewsfeedCard = (props: {
25
25
timestamp : Timestamp
26
26
type : string
27
27
userRole ?: string
28
+ isNewsfeed ?: string
28
29
} ) => {
29
30
const date = props . timestamp . toDate ( )
30
31
const formattedTimestamp = `${ date . toLocaleDateString ( ) } `
@@ -40,6 +41,7 @@ export const NewsfeedCard = (props: {
40
41
timestamp = { formattedTimestamp }
41
42
type = { props . type }
42
43
userRole = { props . userRole }
44
+ isNewsfeed = { "enable newsfeed specific subheading" }
43
45
/>
44
46
)
45
47
You can’t perform that action at this time.
0 commit comments