Skip to content

Commit

Permalink
Merge branch 'feature/AB#19918' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefwint committed Aug 20, 2024
2 parents 0f11c01 + 1930bec commit afa2ac5
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/components/Modules/ModuleTile/ModuleTile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { Badge, Button, Heading, Text } from '@pzh-ui/components'
import { Link } from 'react-router-dom'

import { Module } from '@/api/fetchers.schemas'
import { getModuleStatusColor } from '@/utils/module'

const ModuleTile = ({ Title, Description, Status, Module_ID }: Module) => (
<Link
Expand All @@ -20,9 +19,11 @@ const ModuleTile = ({ Title, Description, Status, Module_ID }: Module) => (
<div className="flex items-center justify-between">
<Badge
text={Status?.Status.replace('-', ' ') || ''}
variant={getModuleStatusColor(Status?.Status)}
variant={
Status?.Status === 'Niet-actief' ? 'gray' : 'green'
}
upperCase={false}
solid
solid={Status?.Status === 'Vastgesteld'}
className="whitespace-nowrap"
/>
<Button
Expand Down

0 comments on commit afa2ac5

Please sign in to comment.