Skip to content

Commit df0aec9

Browse files
committed
fix(problem-list): 在审核中的题单可以删除
1 parent 2a85ad4 commit df0aec9

1 file changed

Lines changed: 12 additions & 12 deletions

File tree

src/content/pages/problem-list/FavoriteItem.tsx

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -260,23 +260,23 @@ const FavoriteItem: FC<FavoriteItemProps> = ({
260260
align-items: center;
261261
`}
262262
>
263-
{hover &&
264-
favorite.name !== DEFAULT_FAVORITE_NAME &&
265-
!favorite.isInAudit && (
266-
<>
263+
{hover && favorite.name !== DEFAULT_FAVORITE_NAME && (
264+
<>
265+
{!favorite.isInAudit && (
267266
<EditIcon
268267
height={20}
269268
css={'grid-area: a;'}
270269
onClick={toggleEnableEdit}
271270
/>
272-
<RemoveIcon
273-
height={20}
274-
css={'grid-area: b;'}
275-
color="#d05451"
276-
onClick={toggleShowRemove}
277-
/>
278-
</>
279-
)}
271+
)}
272+
<RemoveIcon
273+
height={20}
274+
css={'grid-area: b;'}
275+
color="#d05451"
276+
onClick={toggleShowRemove}
277+
/>
278+
</>
279+
)}
280280

281281
<ErrorToolTip
282282
error={togglePublicStateError}

0 commit comments

Comments
 (0)