|
|
@ -13,8 +13,8 @@ export function ShowcaseAlert(props: ShowcaseAlertProps) { |
|
|
|
|
|
|
|
|
|
|
|
const [showRejectedReason, setShowRejectedReason] = useState(false); |
|
|
|
const [showRejectedReason, setShowRejectedReason] = useState(false); |
|
|
|
|
|
|
|
|
|
|
|
const { showcaseStatus = 'idle' } = currentRoadmap; |
|
|
|
const { showcaseStatus } = currentRoadmap; |
|
|
|
if (showcaseStatus === 'idle') { |
|
|
|
if (!showcaseStatus) { |
|
|
|
return null; |
|
|
|
return null; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -53,7 +53,12 @@ export function ShowcaseAlert(props: ShowcaseAlertProps) { |
|
|
|
className: 'text-yellow-600 border-yellow-200', |
|
|
|
className: 'text-yellow-600 border-yellow-200', |
|
|
|
}, |
|
|
|
}, |
|
|
|
}; |
|
|
|
}; |
|
|
|
const { icon: Icon, label, className } = showcaseStatusMap[showcaseStatus]; |
|
|
|
const showcaseStatusDetails = showcaseStatusMap[showcaseStatus]; |
|
|
|
|
|
|
|
if (!showcaseStatusDetails) { |
|
|
|
|
|
|
|
return null; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const { icon: Icon, label, className } = showcaseStatusDetails; |
|
|
|
|
|
|
|
|
|
|
|
return ( |
|
|
|
return ( |
|
|
|
<> |
|
|
|
<> |
|
|
@ -67,6 +72,7 @@ export function ShowcaseAlert(props: ShowcaseAlertProps) { |
|
|
|
|
|
|
|
|
|
|
|
<div |
|
|
|
<div |
|
|
|
className={cn( |
|
|
|
className={cn( |
|
|
|
|
|
|
|
'absolute inset-x-0 top-0 z-10', |
|
|
|
showcaseStatus === 'submitted' && 'bg-blue-100', |
|
|
|
showcaseStatus === 'submitted' && 'bg-blue-100', |
|
|
|
showcaseStatus === 'approved' && 'bg-green-100', |
|
|
|
showcaseStatus === 'approved' && 'bg-green-100', |
|
|
|
showcaseStatus === 'rejected' && 'bg-red-100', |
|
|
|
showcaseStatus === 'rejected' && 'bg-red-100', |
|
|
|