@@ -35,7 +35,7 @@ import { withRouter } from "react-router-dom";
3535import { rsvpYes } from "../../../actions/eventAction" ;
3636import { FaEllipsisH , FaThumbtack } from "react-icons/fa" ;
3737import ReactionsElement from "./ReactionsElement" ;
38- import { pinPost } from ' ../../../actions/postAction'
38+ import { pinPost } from " ../../../actions/postAction" ;
3939import Moment from "react-moment" ;
4040
4141// const reactionVariant = {
@@ -46,7 +46,15 @@ import Moment from "react-moment";
4646// },
4747// };
4848
49- const navStyles = { position : 'fixed' , width : '83%' , top : '0' , zIndex :1 , background : '#fff' , marginTop : '0px' , marginBottom :'0px' }
49+ const navStyles = {
50+ position : "fixed" ,
51+ width : "83%" ,
52+ top : "0" ,
53+ zIndex : 1 ,
54+ background : "#fff" ,
55+ marginTop : "0px" ,
56+ marginBottom : "0px" ,
57+ } ;
5058
5159const CustomToggle = React . forwardRef ( ( { children, onClick } , ref ) => (
5260 < a
@@ -68,8 +76,6 @@ const styles = makeStyles((theme) => ({
6876 } ,
6977 listStyle : {
7078 background : "#ffffff" ,
71- border : "1px solid #cccccc" ,
72- boxShadow : "1px 2px 5px rgba(0, 0, 0, 0.1)" ,
7379 borderRadius : "5px" ,
7480 } ,
7581 listStyle2 : {
@@ -148,7 +154,7 @@ function NewsFeed(props) {
148154 useEffect ( ( ) => {
149155 window . addEventListener ( "scroll" , ( ) => {
150156 const scrollAmount = window . scrollY ;
151- scrollAmount > 369 ? setisTop ( true ) : setisTop ( false )
157+ scrollAmount > 369 ? setisTop ( true ) : setisTop ( false ) ;
152158 } ) ;
153159 } , [ window ] ) ;
154160
@@ -223,9 +229,9 @@ function NewsFeed(props) {
223229 } ;
224230
225231 let onPinPost = ( postId ) => {
226- console . log ( ' Pinning post ' , postId )
227- props . pinPost ( postId )
228- }
232+ console . log ( " Pinning post " , postId ) ;
233+ props . pinPost ( postId ) ;
234+ } ;
229235
230236 useEffect ( ( ) => {
231237 if ( Object . keys ( votes ) . length !== 0 ) {
@@ -269,7 +275,7 @@ function NewsFeed(props) {
269275 return (
270276 < div className = "grid" key = { post . _id } >
271277 < Paper elevation = { 1 } className = { classes . paper } >
272- < Card className = { classes . root } >
278+ < Card className = { classes . root } variant = "outlined" >
273279 < List className = { classes . listStyle } >
274280 < ListItem className = { classes . listStyle2 } >
275281 < ListItemAvatar >
@@ -285,8 +291,8 @@ function NewsFeed(props) {
285291 </ h2 >
286292 < Moment format = "DD MMM YYYY" > { post ?. createdAt } </ Moment >
287293 </ ListItemText >
288- < FaThumbtack
289- style = { { margin : "10px" , width : "10px" , cursor : "pointer" } }
294+ < FaThumbtack
295+ style = { { margin : "10px" , width : "10px" , cursor : "pointer" } }
290296 onClick = { ( ) => onPinPost ( post . _id ) }
291297 />
292298 < Dropdown >
@@ -560,9 +566,12 @@ function NewsFeed(props) {
560566 </ div >
561567 </ div >
562568 < div className = "news__feed__container" >
563- < div className = "tabs__container" style = { isTop ? navStyles : { } } >
569+ < div className = "tabs__container" style = { isTop ? navStyles : { } } >
564570 < span className = "nav__tab container" >
565- < ul className = "nav__list__container" style = { isTop ? { marginBottom : '0px' } : { } } >
571+ < ul
572+ className = "nav__list__container"
573+ style = { isTop ? { marginBottom : "0px" } : { } }
574+ >
566575 < li
567576 className = {
568577 type === "All"
0 commit comments