MCPcopy Create free account
hub / github.com/TraderAlice/OpenAlice / toneClass

Function toneClass

ui/src/components/PushApprovalPanel.tsx:168–176  ·  view source on GitHub ↗
(tone: OperationDisplay['tone'])

Source from the content-addressed store, hash-verified

166}
167
168function toneClass(tone: OperationDisplay['tone']): string {
169 switch (tone) {
170 case 'buy': return 'border-green/30 bg-green/5 text-green'
171 case 'sell': return 'border-red/30 bg-red/5 text-red'
172 case 'danger': return 'border-red/35 bg-red/10 text-red'
173 case 'modify': return 'border-yellow-400/30 bg-yellow-400/5 text-yellow-300'
174 default: return 'border-border bg-bg-tertiary text-text-muted'
175 }
176}
177
178function statusClass(status: string | undefined): string {
179 switch (status) {

Callers 1

OperationRowFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected