mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-02-03 00:33:49 +03:00
full migration to scss
This commit is contained in:
parent
2bd4b69926
commit
8192e5d8f1
40
src/renderer/src/pages/settings/add-theme-modal.tsx
Normal file
40
src/renderer/src/pages/settings/add-theme-modal.tsx
Normal file
@ -0,0 +1,40 @@
|
|||||||
|
import { useTranslation } from "react-i18next";
|
||||||
|
import { Modal, Button } from "@renderer/components";
|
||||||
|
|
||||||
|
interface AddThemeModalProps {
|
||||||
|
visible: boolean;
|
||||||
|
onClose: () => void;
|
||||||
|
onAddTheme: () => void;
|
||||||
|
}
|
||||||
|
|
||||||
|
export function AddThemeModal({
|
||||||
|
visible,
|
||||||
|
onClose,
|
||||||
|
onAddTheme,
|
||||||
|
}: AddThemeModalProps) {
|
||||||
|
const { t } = useTranslation("settings");
|
||||||
|
|
||||||
|
return (
|
||||||
|
<Modal title={t("add_theme")} visible={visible} onClose={onClose}>
|
||||||
|
<div className="add-theme-modal">
|
||||||
|
<form
|
||||||
|
onSubmit={(e) => {
|
||||||
|
e.preventDefault();
|
||||||
|
onAddTheme();
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
<div className="modal-content">{/* placeholder for now */}</div>
|
||||||
|
|
||||||
|
<div className="modal-footer">
|
||||||
|
<Button type="button" theme="outline" onClick={onClose}>
|
||||||
|
{t("cancel")}
|
||||||
|
</Button>
|
||||||
|
<Button type="submit" theme="primary">
|
||||||
|
{t("add")}
|
||||||
|
</Button>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
</Modal>
|
||||||
|
);
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user