chore: Translation Fixes, Lint Error Corrections, and Additional Translations (#788)

* fix translation and small lint error

* changed from localize to useLocalize hook

* changed to useLocalize
This commit is contained in:
Marco Beretta 2023-08-14 17:51:03 +02:00 committed by GitHub
parent b64cc71d88
commit 74802dd720
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
26 changed files with 421 additions and 421 deletions

View file

@ -23,10 +23,10 @@ function PluginAuthForm({ plugin, onSubmit }: TPluginAuthFormProps) {
className="col-span-1 flex w-full flex-col items-start justify-start gap-2"
method="POST"
onSubmit={handleSubmit((auth) =>
onSubmit({ pluginKey: plugin!.pluginKey, action: 'install', auth }),
onSubmit({ pluginKey: plugin?.pluginKey, action: 'install', auth }),
)}
>
{plugin!.authConfig?.map((config: TPluginAuthConfig, i: number) => (
{plugin?.authConfig?.map((config: TPluginAuthConfig, i: number) => (
<div key={`${config.authField}-${i}`} className="flex w-full flex-col gap-1">
<label
htmlFor={config.authField}

View file

@ -85,7 +85,7 @@ function PluginStoreDialog({ isOpen, setIsOpen }: TPluginStoreDialogProps) {
setSelectedPlugin(getAvailablePluginFromKey);
if (
getAvailablePluginFromKey!.authConfig.length > 0 &&
getAvailablePluginFromKey?.authConfig.length > 0 &&
!getAvailablePluginFromKey?.authenticated
) {
setShowPluginAuthForm(true);