diff --git a/src/locales/en/translation.json b/src/locales/en/translation.json index c79741c3..1ed6bff8 100644 --- a/src/locales/en/translation.json +++ b/src/locales/en/translation.json @@ -102,7 +102,7 @@ "playing_now": "Playing now", "change": "Change", "repacks_modal_description": "Choose the repack you want to download", - "no_repacks_found": "No sources found for this game", + "no_repacks_found": "No sources found for this game", "select_folder_hint": "To change the default folder, go to the <0>Settings", "download_now": "Download now", "no_shop_details": "Could not retrieve shop details.", @@ -125,8 +125,8 @@ "remove_from_library_title": "Are you sure?", "remove_from_library_description": "This will remove {{game}} from your library", "options": "Options", - "properties": "Properties", - "filter_by_source": "Filter by source:", + "properties": "Properties", + "filter_by_source": "Filter by source:", "executable_section_title": "Executable", "executable_section_description": "Path of the file that will be executed when \"Play\" is clicked", "downloads_section_title": "Downloads", @@ -140,13 +140,13 @@ "create_shortcut_success": "Shortcut created successfully", "you_might_need_to_restart_steam": "You might need to restart Steam to see the changes", "create_shortcut_error": "Error creating shortcut", - "add_to_favorites": "Add to favorites", - "remove_from_favorites": "Remove from favorites", - "failed_update_favorites": "Failed to update favorites", - "game_removed_from_library": "Game removed from library", - "failed_remove_from_library": "Failed to remove from library", - "files_removed_success": "Files removed successfully", - "failed_remove_files": "Failed to remove files", + "add_to_favorites": "Add to favorites", + "remove_from_favorites": "Remove from favorites", + "failed_update_favorites": "Failed to update favorites", + "game_removed_from_library": "Game removed from library", + "failed_remove_from_library": "Failed to remove from library", + "files_removed_success": "Files removed successfully", + "failed_remove_files": "Failed to remove files", "nsfw_content_title": "This game contains inappropriate content", "nsfw_content_description": "{{title}} contains content that may not be suitable for all ages. Are you sure you want to continue?", "allow_nsfw_content": "Continue", diff --git a/src/locales/pt-BR/translation.json b/src/locales/pt-BR/translation.json index 076b18fa..e8917d44 100644 --- a/src/locales/pt-BR/translation.json +++ b/src/locales/pt-BR/translation.json @@ -90,7 +90,7 @@ "playing_now": "Jogando agora", "change": "Explorar", "repacks_modal_description": "Escolha o repack do jogo que deseja baixar", - "no_repacks_found": "Nenhuma fonte encontrada para este jogo", + "no_repacks_found": "Nenhuma fonte encontrada para este jogo", "select_folder_hint": "Para trocar o diretório padrão, acesse a <0>Tela de Ajustes", "download_now": "Iniciar download", "no_shop_details": "Não foi possível obter os detalhes da loja.", @@ -110,8 +110,8 @@ "create_shortcut_simple": "Criar atalho", "remove_files": "Remover arquivos", "options": "Gerenciar", - "properties": "Propriedades", - "filter_by_source": "Filtrar por fonte:", + "properties": "Propriedades", + "filter_by_source": "Filtrar por fonte:", "remove_from_library_description": "Isso irá remover {{game}} da sua biblioteca", "remove_from_library_title": "Tem certeza?", "executable_section_title": "Executável", @@ -194,13 +194,13 @@ "download_error_not_cached_on_hydra": "Este download não está disponível no Nimbus.", "game_removed_from_favorites": "Jogo removido dos favoritos", "game_added_to_favorites": "Jogo adicionado aos favoritos", - "add_to_favorites": "Adicionar aos favoritos", - "remove_from_favorites": "Remover dos favoritos", - "failed_update_favorites": "Falha ao atualizar favoritos", - "game_removed_from_library": "Jogo removido da biblioteca", - "failed_remove_from_library": "Falha ao remover da biblioteca", - "files_removed_success": "Arquivos removidos com sucesso", - "failed_remove_files": "Falha ao remover arquivos", + "add_to_favorites": "Adicionar aos favoritos", + "remove_from_favorites": "Remover dos favoritos", + "failed_update_favorites": "Falha ao atualizar favoritos", + "game_removed_from_library": "Jogo removido da biblioteca", + "failed_remove_from_library": "Falha ao remover da biblioteca", + "files_removed_success": "Arquivos removidos com sucesso", + "failed_remove_files": "Falha ao remover arquivos", "automatically_extract_downloaded_files": "Extrair automaticamente os arquivos baixados", "create_start_menu_shortcut": "Criar atalho no Menu Iniciar", "invalid_wine_prefix_path": "Caminho do prefixo Wine inválido", diff --git a/src/renderer/src/components/context-menu/context-menu.tsx b/src/renderer/src/components/context-menu/context-menu.tsx index ebbc6b70..cb9e0347 100644 --- a/src/renderer/src/components/context-menu/context-menu.tsx +++ b/src/renderer/src/components/context-menu/context-menu.tsx @@ -36,7 +36,9 @@ export function ContextMenu({ const [activeSubmenu, setActiveSubmenu] = useState(null); const submenuCloseTimeout = useRef(null); const itemRefs = useRef>({}); - const [submenuStyles, setSubmenuStyles] = useState>({}); + const [submenuStyles, setSubmenuStyles] = useState< + Record + >({}); useEffect(() => { if (!visible) return; @@ -127,7 +129,9 @@ export function ContextMenu({ const parentEl = itemRefs.current[activeSubmenu]; if (!parentEl) return; - const submenuEl = parentEl.querySelector(".context-menu__submenu") as HTMLElement | null; + const submenuEl = parentEl.querySelector( + ".context-menu__submenu" + ) as HTMLElement | null; if (!submenuEl) return; const parentRect = parentEl.getBoundingClientRect(); @@ -174,7 +178,9 @@ export function ContextMenu({ key={item.id} ref={(el) => (itemRefs.current[item.id] = el)} className="context-menu__item-container" - onMouseEnter={() => item.submenu && handleSubmenuMouseEnter(item.id)} + onMouseEnter={() => + item.submenu && handleSubmenuMouseEnter(item.id) + } onMouseLeave={() => item.submenu && handleSubmenuMouseLeave()} > {item.separator &&
} @@ -198,7 +204,7 @@ export function ContextMenu({ )} - {item.submenu && activeSubmenu === item.id && ( + {item.submenu && activeSubmenu === item.id && (
    {item.submenu.map((subItem) => ( -
  • - {subItem.separator &&
    } +
  • + {subItem.separator && ( +
    + )}