Update StateTag component to rename 'unconsumed' state to 'new' and add 'used' state with corresponding status and text.
This commit is contained in:
parent
dabad4f489
commit
b7bb6121b7
@ -56,9 +56,9 @@ const StateTag = ({ state, showBadge = true, style = {} }) => {
|
|||||||
status = 'success'
|
status = 'success'
|
||||||
text = 'Ready'
|
text = 'Ready'
|
||||||
break
|
break
|
||||||
case 'unconsumed':
|
case 'new':
|
||||||
status = 'success'
|
status = 'success'
|
||||||
text = 'Unconsumed'
|
text = 'New'
|
||||||
break
|
break
|
||||||
case 'error':
|
case 'error':
|
||||||
status = 'error'
|
status = 'error'
|
||||||
@ -80,6 +80,10 @@ const StateTag = ({ state, showBadge = true, style = {} }) => {
|
|||||||
status = 'warning'
|
status = 'warning'
|
||||||
text = 'Queued'
|
text = 'Queued'
|
||||||
break
|
break
|
||||||
|
case 'used':
|
||||||
|
status = 'warning'
|
||||||
|
text = 'Used'
|
||||||
|
break
|
||||||
default:
|
default:
|
||||||
status = 'default'
|
status = 'default'
|
||||||
text = state || 'Unknown'
|
text = state || 'Unknown'
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user