@@ -3,6 +3,7 @@ import CardBootstrap from "react-bootstrap/Card"
3
3
import { useMediaQuery } from "usehooks-ts"
4
4
import { Col , Row } from "../bootstrap"
5
5
import { Internal } from "components/links"
6
+ import { truncateText } from "components/formatting"
6
7
7
8
interface NewsfeedCardBodyProps {
8
9
billText ?: string
@@ -33,7 +34,7 @@ export const NewsfeedBillCardBody = (props: NewsfeedCardBodyProps) => {
33
34
className = { `m-3` }
34
35
/>
35
36
< CardBootstrap . Text className = { `mb-0 mt-2` } >
36
- < strong > { text } </ strong >
37
+ < strong > { truncateText ( text , 600 ) } </ strong >
37
38
</ CardBootstrap . Text >
38
39
< >
39
40
{ t ( "newsfeed.actionTaken" ) }
@@ -52,7 +53,7 @@ export const NewsfeedBillCardBody = (props: NewsfeedCardBodyProps) => {
52
53
/>
53
54
< Col className = { `m-2` } >
54
55
< CardBootstrap . Text className = { `mb-0` } >
55
- < strong > { text } </ strong >
56
+ < strong > { truncateText ( text , 600 ) } </ strong >
56
57
</ CardBootstrap . Text >
57
58
< >
58
59
{ t ( "newsfeed.actionTaken" ) }
@@ -112,7 +113,10 @@ export const NewsfeedTestimonyCardBody = (props: NewsfeedCardBodyProps) => {
112
113
</ >
113
114
) }
114
115
</ div >
115
- < strong className = { `mb-4` } > { `"${ text } "` } </ strong >
116
+ < strong className = { `mb-4` } > { `"${ truncateText (
117
+ text ,
118
+ 600
119
+ ) } "`} </ strong >
116
120
</ Col >
117
121
) : (
118
122
< >
@@ -138,7 +142,10 @@ export const NewsfeedTestimonyCardBody = (props: NewsfeedCardBodyProps) => {
138
142
< Col
139
143
className = { `d-flex align-self-center justify-content-center` }
140
144
>
141
- < strong className = { `m-4` } > { `"${ text } "` } </ strong >
145
+ < strong className = { `m-4` } > { `"${ truncateText (
146
+ text ,
147
+ 600
148
+ ) } "`} </ strong >
142
149
</ Col >
143
150
</ >
144
151
) }
0 commit comments