@@ -168,7 +168,7 @@ const MessagePreview: React.FC<MessagePreviewProps> = ({ message, showContext =
168168export default function FavoriteDetailPage ( { favoriteId } : FavoriteDetailPageProps ) {
169169 const {
170170 getFavoriteById,
171- togglePinFavorite ,
171+ toggleStarFavorite ,
172172 deleteFavorite,
173173 checkSourceExists,
174174 incrementViewCount
@@ -214,9 +214,9 @@ export default function FavoriteDetailPage({ favoriteId }: FavoriteDetailPagePro
214214 }
215215 }
216216
217- // 处理置顶切换
218- const handleTogglePin = ( ) => {
219- togglePinFavorite ( favoriteId )
217+ // 处理星标切换
218+ const handleToggleStar = ( ) => {
219+ toggleStarFavorite ( favoriteId )
220220 }
221221
222222 // 处理删除
@@ -395,7 +395,7 @@ export default function FavoriteDetailPage({ favoriteId }: FavoriteDetailPagePro
395395 < Title level = { 3 } style = { { margin : 0 } } >
396396 { favorite . title }
397397 </ Title >
398- { favorite . pinned && < StarFilled style = { { color : '#faad14' , fontSize : 20 } } /> }
398+ { favorite . starred && < StarFilled style = { { color : '#faad14' , fontSize : 20 } } /> }
399399 </ div >
400400 < Space size = "small" style = { { marginTop : 8 } } >
401401 { renderTypeTag ( ) }
@@ -408,10 +408,10 @@ export default function FavoriteDetailPage({ favoriteId }: FavoriteDetailPagePro
408408
409409 < div className = "favorite-actions" >
410410 < Button
411- icon = { favorite . pinned ? < StarFilled /> : < StarOutlined /> }
412- onClick = { handleTogglePin }
411+ icon = { favorite . starred ? < StarFilled /> : < StarOutlined /> }
412+ onClick = { handleToggleStar }
413413 >
414- { favorite . pinned ? '取消置顶 ' : '置顶 ' }
414+ { favorite . starred ? '取消星标 ' : '设为星标 ' }
415415 </ Button >
416416 { sourceExists && (
417417 < Button icon = { < LinkOutlined /> } onClick = { handleNavigateToSource } >
0 commit comments