Skip to content

Commit

Permalink
Refactor import and status badge variant for contributions
Browse files Browse the repository at this point in the history
- Rename Infinity import to InfinityIcon in GestionTab component
- Update contribution status badge variant for 'demande de modification' status
  • Loading branch information
mpressen committed Feb 20, 2025
1 parent 85855d7 commit caf280b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/frontend/components/pages/osbl/show/GestionTab.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ import PieChartComponent from '@/components/pages/osbl/show/GestionTab/PieChartC
import MyCheckbox from '@/components/shared/MyCheckbox'
import { Separator } from '@/components/ui/separator'
import { formatAmount } from '@/lib/formatters'
import { Infinity } from 'lucide-react'
import { Infinity as InfinityIcon } from 'lucide-react'
interface Props {
osbl: NewOsbl
}

function getTreasuryMargin (treasury: number | undefined, budget: number | undefined): string | React.ReactElement {
if (treasury !== undefined && budget === undefined) {
return <Infinity />
return <InfinityIcon />
}
if (treasury === undefined || budget === undefined) {
return <span className='text-muted-foreground'>-</span>
Expand Down
2 changes: 1 addition & 1 deletion app/frontend/pages/Contribution/Index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ function getStatusBadgeVariant (status: string): BadgeProps['variant'] {
return 'ghost'
case 'en attente de revue':
return 'outline'
case 'en cours de revue':
case 'demande de modification':
return 'secondary'
case 'validée':
return 'default'
Expand Down

0 comments on commit caf280b

Please sign in to comment.