Skip to content

Commit

Permalink
adjust auto fetch button style
Browse files Browse the repository at this point in the history
  • Loading branch information
rafael-vasconcellos committed Aug 23, 2024
1 parent 44f4e78 commit 4f0117b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/TextBox/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export default function TextBox( {modelName: model_name, providerKey, index}: IT
const provider = Providers[providerKey as TProviderKeys]
const auto_fetch = createMemo(() => configs().getM(providerKey, model_name)?.auto_fetch)
const textareaStyle = createMemo(() => text.translated==="Waiting for text..."? "italic text-zinc-100" : "")
const autoFetchStyle = () => auto_fetch()? "text-green-500" : "text-zinc-500"
const autoFetchStyle = () => auto_fetch()? "text-green-500" : "text-red-600"


async function translate(options?: {save?: boolean}) {
Expand Down

0 comments on commit 4f0117b

Please sign in to comment.