diff options
Diffstat (limited to 'frontend/src/components/modals')
| -rw-r--r-- | frontend/src/components/modals/DropdownMultiselect.tsx | 2 | ||||
| -rw-r--r-- | frontend/src/components/modals/PluginInstallModal.tsx | 28 |
2 files changed, 15 insertions, 15 deletions
diff --git a/frontend/src/components/modals/DropdownMultiselect.tsx b/frontend/src/components/modals/DropdownMultiselect.tsx index 4c5cf7b1..255c6fa0 100644 --- a/frontend/src/components/modals/DropdownMultiselect.tsx +++ b/frontend/src/components/modals/DropdownMultiselect.tsx @@ -59,7 +59,7 @@ const DropdownMultiselect: FC<{ const [itemsSelected, setItemsSelected] = useState<any>(selected); const { t } = useTranslation(); - const handleItemSelect = useCallback((checked, value) => { + const handleItemSelect = useCallback((checked: boolean, value: any) => { setItemsSelected((x: any) => checked ? [...x.filter((y: any) => y !== value), value] : x.filter((y: any) => y !== value), ); diff --git a/frontend/src/components/modals/PluginInstallModal.tsx b/frontend/src/components/modals/PluginInstallModal.tsx index 8b3128a1..c6c90264 100644 --- a/frontend/src/components/modals/PluginInstallModal.tsx +++ b/frontend/src/components/modals/PluginInstallModal.tsx @@ -60,10 +60,10 @@ const PluginInstallModal: FC<PluginInstallModalProps> = ({ strTitle={ <div> <TranslationHelper - trans_class={TranslationClass.PLUGIN_INSTALL_MODAL} - trans_text="title" - i18n_args={{ artifact: artifact }} - install_type={installType} + transClass={TranslationClass.PLUGIN_INSTALL_MODAL} + transText="title" + i18nArgs={{ artifact: artifact }} + installType={installType} /> </div> } @@ -71,17 +71,17 @@ const PluginInstallModal: FC<PluginInstallModalProps> = ({ loading ? ( <div> <TranslationHelper - trans_class={TranslationClass.PLUGIN_INSTALL_MODAL} - trans_text="button_processing" - install_type={installType} + transClass={TranslationClass.PLUGIN_INSTALL_MODAL} + transText="button_processing" + installType={installType} /> </div> ) : ( <div> <TranslationHelper - trans_class={TranslationClass.PLUGIN_INSTALL_MODAL} - trans_text="button_idle" - install_type={installType} + transClass={TranslationClass.PLUGIN_INSTALL_MODAL} + transText="button_idle" + installType={installType} /> </div> ) @@ -89,13 +89,13 @@ const PluginInstallModal: FC<PluginInstallModalProps> = ({ > <div> <TranslationHelper - trans_class={TranslationClass.PLUGIN_INSTALL_MODAL} - trans_text="desc" - i18n_args={{ + transClass={TranslationClass.PLUGIN_INSTALL_MODAL} + transText="desc" + i18nArgs={{ artifact: artifact, version: version, }} - install_type={installType} + installType={installType} /> </div> {loading && ( |
