File tree Expand file tree Collapse file tree 3 files changed +18
-9
lines changed Expand file tree Collapse file tree 3 files changed +18
-9
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ interface CardTitleProps {
17
17
isUserMatch ?: boolean
18
18
type ?: string
19
19
userRole ?: string
20
+ isNewsfeed ?: string
20
21
}
21
22
22
23
export const CardTitle = ( props : CardTitleProps ) => {
@@ -29,7 +30,8 @@ export const CardTitle = (props: CardTitleProps) => {
29
30
isUserMatch,
30
31
subheader,
31
32
type,
32
- userRole
33
+ userRole,
34
+ isNewsfeed
33
35
} = props
34
36
35
37
return (
@@ -44,14 +46,18 @@ export const CardTitle = (props: CardTitleProps) => {
44
46
subheader = { subheader }
45
47
type = { type }
46
48
/>
47
- < CardTitleFollowing
48
- billId = { billId }
49
- header = { header }
50
- subheader = { subheader }
51
- isBillMatch = { isBillMatch }
52
- isUserMatch = { isUserMatch }
53
- type = { type }
54
- />
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
+ ) }
55
61
</ CardBootstrap . Body >
56
62
</ CardBootstrap . Body >
57
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