Fix project status styles for product owner

This commit is contained in:
Hazem Krimi
2021-07-01 10:54:00 +01:00
parent 93d0bc7471
commit 20d74fe2ff
+46 -14
View File
@@ -692,10 +692,18 @@ const Project = () => {
</Text>
</Box>
) : (
<Text variant='body' color={role || 'client'}>
{project.state === 'OnReview' && 'On Review'}
{project.state === 'Declined' && 'Declined'}
</Text>
<>
{project.state === 'OnReview' && (
<Text variant='body' color='warning'>
{project.state}
</Text>
)}
{project.state === 'Declined' && (
<Text variant='body' color='error'>
{project.state}
</Text>
)}
</>
)}
</>
)}
@@ -760,11 +768,23 @@ const Project = () => {
</Text>
</Box>
) : (
<Text variant='body' color={role || 'client'}>
{project.state === 'OnReview' && 'On Review'}
{project.state === 'Approved' && 'In Progress'}
{project.state === 'Declined' && 'Declined'}
</Text>
<>
{project.state === 'OnReview' && (
<Text variant='body' color='warning'>
{project.state}
</Text>
)}
{project.state === 'Declined' && (
<Text variant='body' color='error'>
{project.state}
</Text>
)}
{project.state === 'Approved' && (
<Text variant='body' color={role || 'client'}>
In Progress
</Text>
)}
</>
)}
</>
)}
@@ -829,11 +849,23 @@ const Project = () => {
</Text>
</Box>
) : (
<Text variant='body' color={role || 'client'}>
{project.state === 'OnReview' && 'On Review'}
{project.state === 'Approved' && 'In Progress'}
{project.state === 'Declined' && 'Declined'}
</Text>
<>
{project.state === 'OnReview' && (
<Text variant='body' color='warning'>
{project.state}
</Text>
)}
{project.state === 'Declined' && (
<Text variant='body' color='error'>
{project.state}
</Text>
)}
{project.state === 'Approved' && (
<Text variant='body' color={role || 'client'}>
In Progress
</Text>
)}
</>
)}
</>
)}