mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-08-03 22:32:42 +00:00
refactor: tokenize token-usage gauge, mic, and oauth countdown status colors
This commit is contained in:
parent
3256906f9e
commit
6a666aeabd
3 changed files with 4 additions and 4 deletions
|
|
@ -95,7 +95,7 @@ export default memo(function AudioRecorder({
|
|||
|
||||
const renderIcon = () => {
|
||||
if (isListening === true) {
|
||||
return <MicOff className="stroke-red-500" />;
|
||||
return <MicOff className="stroke-status-error" />;
|
||||
}
|
||||
if (isLoading === true) {
|
||||
return <Spinner className="stroke-text-secondary" />;
|
||||
|
|
|
|||
|
|
@ -17,10 +17,10 @@ function getStrokeClass(percent: number, indeterminate: boolean): string {
|
|||
return 'stroke-text-secondary';
|
||||
}
|
||||
if (percent > 90) {
|
||||
return 'stroke-red-500';
|
||||
return 'stroke-status-error';
|
||||
}
|
||||
if (percent > 75) {
|
||||
return 'stroke-yellow-500';
|
||||
return 'stroke-status-warning';
|
||||
}
|
||||
return 'stroke-text-secondary';
|
||||
}
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@ export default function OAuthSuccess() {
|
|||
<p className="mb-2 text-sm text-text-secondary">
|
||||
{localize('com_ui_oauth_success_description') ||
|
||||
'Your authentication was successful. This window will close in'}{' '}
|
||||
<span className="font-medium text-indigo-500">{secondsLeft}</span>{' '}
|
||||
<span className="font-medium text-accent-primary">{secondsLeft}</span>{' '}
|
||||
{localize('com_ui_seconds') || 'seconds'}.
|
||||
</p>
|
||||
{serverName && (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue