mirror of
https://github.com/rennf93/roboco.git
synced 2026-08-03 07:23:24 +02:00
fix(panel): hide the Report-CEO button when no handler is wired
The prop was never passed by any consumer, leaving a silent no-op button on urgent flags; it now renders only when a real handler exists.
This commit is contained in:
@@ -119,7 +119,7 @@ export function FlaggedItem({
|
||||
Resolve
|
||||
</Button>
|
||||
</HelpTip>
|
||||
{flag.severity === FlagSeverity.URGENT && (
|
||||
{flag.severity === FlagSeverity.URGENT && onReportToCeo && (
|
||||
<HelpTip label="Only shown for Urgent-severity flags">
|
||||
<Button
|
||||
variant="default"
|
||||
|
||||
Reference in New Issue
Block a user