Update StateTag component to rename 'unconsumed' state to 'new' and add 'used' state with corresponding status and text.

This commit is contained in:
Tom Butcher 2025-11-24 03:32:40 +00:00
parent dabad4f489
commit b7bb6121b7

View File

@ -56,9 +56,9 @@ const StateTag = ({ state, showBadge = true, style = {} }) => {
status = 'success'
text = 'Ready'
break
case 'unconsumed':
case 'new':
status = 'success'
text = 'Unconsumed'
text = 'New'
break
case 'error':
status = 'error'
@ -80,6 +80,10 @@ const StateTag = ({ state, showBadge = true, style = {} }) => {
status = 'warning'
text = 'Queued'
break
case 'used':
status = 'warning'
text = 'Used'
break
default:
status = 'default'
text = state || 'Unknown'