@@ -22,7 +22,7 @@ import {
2222 TimelineDot ,
2323 TimelineOppositeContent ,
2424} from '@mui/lab' ;
25- import { useNavigate , Link as RouterLink , Link } from 'react-router-dom' ;
25+ import { useNavigate , Link as RouterLink } from 'react-router-dom' ;
2626
2727import { Sidebar } from '@components/layout' ;
2828import { useAuth } from '@lib/auth' ;
@@ -469,7 +469,7 @@ const NewsFeedPage: React.FC = () => {
469469 { item . user_name ? item . user_name [ 0 ] . toUpperCase ( ) : "A" }
470470 </ Avatar >
471471 < Typography variant = "caption" sx = { { color : 'text.secondary' } } >
472- von < Typography component = { Link } to = { `/u/${ item . user_id } ` } onClick = { ( e ) => e . stopPropagation ( ) } variant = "caption" sx = { { color : 'inherit' , fontWeight : 600 , textDecoration : 'none' , '&:hover' : { textDecoration : 'underline' , color : 'primary.main' } } } > { item . user_name || "Anonym" } </ Typography > · { formatNewsDate ( item . created_at || "" ) }
472+ von < Typography component = { RouterLink } to = { `/u/${ item . user_id } ` } onClick = { ( e ) => e . stopPropagation ( ) } variant = "caption" sx = { { color : 'inherit' , fontWeight : 600 , textDecoration : 'none' , '&:hover' : { textDecoration : 'underline' , color : 'primary.main' } } } > { item . user_name || "Anonym" } </ Typography > · { formatNewsDate ( item . created_at || "" ) }
473473 </ Typography >
474474 </ Stack >
475475 < Typography variant = "subtitle1" sx = { { fontWeight : 700 , lineHeight : 1.2 } } > { item . title } </ Typography >
@@ -498,7 +498,7 @@ const NewsFeedPage: React.FC = () => {
498498 { post . author ? post . author [ 0 ] . toUpperCase ( ) : "A" }
499499 </ Avatar >
500500 < Typography variant = "caption" sx = { { color : 'text.secondary' } } >
501- von < Typography component = { Link } to = { `/u/${ post . authorId } ` } onClick = { ( e ) => e . stopPropagation ( ) } variant = "caption" sx = { { color : 'inherit' , fontWeight : 600 , textDecoration : 'none' , '&:hover' : { textDecoration : 'underline' , color : 'primary.main' } } } > { post . author } </ Typography > · { formatForumDate ( post . createdAt ) }
501+ von < Typography component = { RouterLink } to = { `/u/${ post . authorId } ` } onClick = { ( e ) => e . stopPropagation ( ) } variant = "caption" sx = { { color : 'inherit' , fontWeight : 600 , textDecoration : 'none' , '&:hover' : { textDecoration : 'underline' , color : 'primary.main' } } } > { post . author } </ Typography > · { formatForumDate ( post . createdAt ) }
502502 </ Typography >
503503 </ Stack >
504504 < Typography variant = "subtitle1" sx = { { fontWeight : 700 , lineHeight : 1.2 } } > { post . title } </ Typography >
0 commit comments