Skip to content

Commit

Permalink
Fix colors on generate cells with AI (srcbookdev#190)
Browse files Browse the repository at this point in the history
  • Loading branch information
nichochar authored Aug 20, 2024
1 parent ddda46a commit c17ae94
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/web/src/components/cells/generate-ai.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export default function GenerateAiCell(props: {
className={cn(
'group/cell relative w-full rounded-md border border-border transition-all',
state === 'loading'
? 'ring-1 ring-run-ring border-run-ring'
? 'ring-1 ring-ai-ring border-ai-ring'
: 'focus-within:ring-1 focus-within:ring-ring focus-within:border-ring',
error &&
'ring-1 ring-sb-red-30 border-sb-red-30 hover:border-sb-red-30 focus-within:border-sb-red-30 focus-within:ring-sb-red-30',
Expand All @@ -82,7 +82,7 @@ export default function GenerateAiCell(props: {
<Button
disabled={!prompt || !aiEnabled}
onClick={generate}
variant={state === 'idle' ? 'default' : 'run'}
variant={state === 'idle' ? 'default' : 'ai'}
>
{state === 'idle' ? 'Generate' : 'Generating'}
</Button>
Expand Down

0 comments on commit c17ae94

Please sign in to comment.