mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-03-09 15:40:26 +00:00
feat: adding deeplink for profile
This commit is contained in:
parent
d1dc27aef6
commit
e3a4f12140
3 changed files with 16 additions and 13 deletions
|
@ -85,6 +85,12 @@ const handleDeepLinkPath = (uri?: string) => {
|
|||
|
||||
if (url.host === "install-source") {
|
||||
WindowManager.redirect(`settings${url.search}`);
|
||||
return;
|
||||
}
|
||||
|
||||
if (url.host === "profile") {
|
||||
WindowManager.redirect(`profile${url.search}`);
|
||||
return;
|
||||
}
|
||||
|
||||
if (url.host === "install-theme") {
|
||||
|
|
|
@ -74,7 +74,10 @@ export function ReportProfile() {
|
|||
title={t("report_profile")}
|
||||
clickOutsideToClose={false}
|
||||
>
|
||||
<form className="report-profile__form">
|
||||
<form
|
||||
onSubmit={handleSubmit(onSubmit)}
|
||||
className="report-profile__form"
|
||||
>
|
||||
<Controller
|
||||
control={control}
|
||||
name="reason"
|
||||
|
@ -101,12 +104,7 @@ export function ReportProfile() {
|
|||
error={errors.description?.message}
|
||||
/>
|
||||
|
||||
<Button
|
||||
className="report-profile__submit"
|
||||
onClick={handleSubmit(onSubmit)}
|
||||
>
|
||||
{t("report")}
|
||||
</Button>
|
||||
<Button className="report-profile__submit">{t("report")}</Button>
|
||||
</form>
|
||||
</Modal>
|
||||
|
||||
|
|
|
@ -74,7 +74,10 @@ export function AddThemeModal({
|
|||
description={t("create_theme_modal_description")}
|
||||
onClose={onClose}
|
||||
>
|
||||
<form className="add-theme-modal__container">
|
||||
<form
|
||||
onSubmit={handleSubmit(onSubmit)}
|
||||
className="add-theme-modal__container"
|
||||
>
|
||||
<TextField
|
||||
{...register("name")}
|
||||
label={t("theme_name")}
|
||||
|
@ -83,11 +86,7 @@ export function AddThemeModal({
|
|||
error={errors.name?.message}
|
||||
/>
|
||||
|
||||
<Button
|
||||
theme="primary"
|
||||
onClick={handleSubmit(onSubmit)}
|
||||
disabled={isSubmitting}
|
||||
>
|
||||
<Button theme="primary" disabled={isSubmitting}>
|
||||
{t("create_theme")}
|
||||
</Button>
|
||||
</form>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue