mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-04-27 01:36:30 +02:00
fix warning card to surface success message alongside kb deletion failure
This commit is contained in:
parent
2b3c5e377f
commit
a57fc1e578
1 changed files with 5 additions and 2 deletions
|
|
@ -389,8 +389,11 @@ function WarningCard({ result }: { result: WarningResult }) {
|
|||
<p className="text-sm font-medium text-amber-600 dark:text-amber-500">Partial success</p>
|
||||
</div>
|
||||
</div>
|
||||
<div className="space-y-2 px-4 py-3 text-xs">
|
||||
<p className="text-sm text-muted-foreground">{result.warning}</p>
|
||||
<div className="space-y-2 px-4 py-3">
|
||||
{result.message && (
|
||||
<p className="text-sm text-muted-foreground">{result.message}</p>
|
||||
)}
|
||||
<p className="text-xs text-amber-600 dark:text-amber-500">{result.warning}</p>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue