File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
src/components/landingPage Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -84,7 +84,7 @@ const TwitterEmbed = ({ tweetId }) => {
8484} ;
8585
8686const TwitterTestimonials = ( ) => {
87- const [ visibleCount , setVisibleCount ] = useState ( 9 ) ;
87+ const [ visibleCount , setVisibleCount ] = useState ( 6 ) ;
8888
8989 // Sort tweets to show featured ones first
9090 const sortedTweets = [ ...tweetUrls ] . sort ( ( a , b ) => {
@@ -155,12 +155,12 @@ const TwitterTestimonials = () => {
155155 </ div >
156156
157157 { /* Button Controls */ }
158- { ( hasMoreTweets || visibleCount > 9 ) && (
158+ { ( hasMoreTweets || visibleCount > 6 ) && (
159159 < div className = "text-center mt-8" >
160160 < div className = "flex flex-col sm:flex-row gap-4 justify-center items-center" >
161161 { hasMoreTweets && (
162162 < button
163- onClick = { ( ) => setVisibleCount ( prev => prev + 5 ) }
163+ onClick = { ( ) => setVisibleCount ( prev => prev + 6 ) }
164164 className = "inline-flex items-center px-6 py-3 bg-[#FFDE59] text-black font-semibold rounded-lg shadow-lg hover:shadow-xl transition-all duration-300 hover:bg-[#FFDE59]/90"
165165 >
166166 Read More
@@ -170,9 +170,9 @@ const TwitterTestimonials = () => {
170170 </ button >
171171 ) }
172172
173- { visibleCount > 9 && (
173+ { visibleCount > 6 && (
174174 < button
175- onClick = { ( ) => setVisibleCount ( 9 ) }
175+ onClick = { ( ) => setVisibleCount ( 6 ) }
176176 className = "inline-flex items-center px-6 py-3 bg-gray-700 text-white font-semibold rounded-lg shadow-lg hover:shadow-xl transition-all duration-300 hover:bg-gray-600"
177177 >
178178 Show Less
You can’t perform that action at this time.
0 commit comments