Skip to content

Commit fa14e81

Browse files
committed
add not about replacing
1 parent b3fa72e commit fa14e81

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

frontend/src/components/Common/PaperEditModal.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -495,6 +495,7 @@ function PaperEditModal<T extends IQuestionPaperFile | IAdminDashboardQP>(props:
495495
{
496496
awaitingSimilarPapers ? <div style={{ justifyContent: 'center', display: 'flex' }}><Spinner /></div> :
497497
<div>
498+
{similarPapers.length > 0 && <p style={{margin: "0 0 4px 0"}}>Select papers to replace.</p>}
498499
{
499500
similarPapers.length === 0 ? <p>No similar papers found.</p> :
500501
similarPapers.map((paper, i) => <QPCard
@@ -509,8 +510,7 @@ function PaperEditModal<T extends IQuestionPaperFile | IAdminDashboardQP>(props:
509510
setReplacingPapers((prev) => prev.filter((p) => p.id !== paper.id));
510511
}
511512
}}
512-
/>
513-
)
513+
/>)
514514
}
515515
</div>
516516
}

0 commit comments

Comments
 (0)