feat: add theme import translations and modal improvements

This commit is contained in:
Hachi-R 2025-02-16 16:24:57 -03:00
parent 4cfecf8493
commit a13e991d2c
2 changed files with 9 additions and 7 deletions

View file

@ -2,10 +2,10 @@ import { Button } from "@renderer/components/button/button";
import { Modal } from "@renderer/components/modal/modal";
import { useTranslation } from "react-i18next";
import "./modals.scss";
import { Theme } from "@types";
import { Theme, UserProfile } from "@types";
import { injectCustomCss, removeCustomCss } from "@renderer/helpers";
import { useToast } from "@renderer/hooks";
import { UserProfile } from "@types";
interface ImportThemeModalProps {
visible: boolean;
onClose: () => void;
@ -74,7 +74,7 @@ export const ImportThemeModal = ({
<Modal
visible={visible}
title={t("import_theme")}
description={t("import_theme_description")}
description={t("import_theme_description", { theme: themeName })}
onClose={onClose}
>
<div className="delete-all-themes-modal__container">