mirror of
https://github.com/hazemKrimi/crimson-quirks-ui.git
synced 2026-05-01 18:20:28 +00:00
Fix project status styles for product owner
This commit is contained in:
+46
-14
@@ -692,10 +692,18 @@ const Project = () => {
|
|||||||
</Text>
|
</Text>
|
||||||
</Box>
|
</Box>
|
||||||
) : (
|
) : (
|
||||||
<Text variant='body' color={role || 'client'}>
|
<>
|
||||||
{project.state === 'OnReview' && 'On Review'}
|
{project.state === 'OnReview' && (
|
||||||
{project.state === 'Declined' && 'Declined'}
|
<Text variant='body' color='warning'>
|
||||||
</Text>
|
{project.state}
|
||||||
|
</Text>
|
||||||
|
)}
|
||||||
|
{project.state === 'Declined' && (
|
||||||
|
<Text variant='body' color='error'>
|
||||||
|
{project.state}
|
||||||
|
</Text>
|
||||||
|
)}
|
||||||
|
</>
|
||||||
)}
|
)}
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
@@ -760,11 +768,23 @@ const Project = () => {
|
|||||||
</Text>
|
</Text>
|
||||||
</Box>
|
</Box>
|
||||||
) : (
|
) : (
|
||||||
<Text variant='body' color={role || 'client'}>
|
<>
|
||||||
{project.state === 'OnReview' && 'On Review'}
|
{project.state === 'OnReview' && (
|
||||||
{project.state === 'Approved' && 'In Progress'}
|
<Text variant='body' color='warning'>
|
||||||
{project.state === 'Declined' && 'Declined'}
|
{project.state}
|
||||||
</Text>
|
</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>
|
</Text>
|
||||||
</Box>
|
</Box>
|
||||||
) : (
|
) : (
|
||||||
<Text variant='body' color={role || 'client'}>
|
<>
|
||||||
{project.state === 'OnReview' && 'On Review'}
|
{project.state === 'OnReview' && (
|
||||||
{project.state === 'Approved' && 'In Progress'}
|
<Text variant='body' color='warning'>
|
||||||
{project.state === 'Declined' && 'Declined'}
|
{project.state}
|
||||||
</Text>
|
</Text>
|
||||||
|
)}
|
||||||
|
{project.state === 'Declined' && (
|
||||||
|
<Text variant='body' color='error'>
|
||||||
|
{project.state}
|
||||||
|
</Text>
|
||||||
|
)}
|
||||||
|
{project.state === 'Approved' && (
|
||||||
|
<Text variant='body' color={role || 'client'}>
|
||||||
|
In Progress
|
||||||
|
</Text>
|
||||||
|
)}
|
||||||
|
</>
|
||||||
)}
|
)}
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
|
|||||||
Reference in New Issue
Block a user