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") {
|
if (url.host === "install-source") {
|
||||||
WindowManager.redirect(`settings${url.search}`);
|
WindowManager.redirect(`settings${url.search}`);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (url.host === "profile") {
|
||||||
|
WindowManager.redirect(`profile${url.search}`);
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (url.host === "install-theme") {
|
if (url.host === "install-theme") {
|
||||||
|
|
|
@ -74,7 +74,10 @@ export function ReportProfile() {
|
||||||
title={t("report_profile")}
|
title={t("report_profile")}
|
||||||
clickOutsideToClose={false}
|
clickOutsideToClose={false}
|
||||||
>
|
>
|
||||||
<form className="report-profile__form">
|
<form
|
||||||
|
onSubmit={handleSubmit(onSubmit)}
|
||||||
|
className="report-profile__form"
|
||||||
|
>
|
||||||
<Controller
|
<Controller
|
||||||
control={control}
|
control={control}
|
||||||
name="reason"
|
name="reason"
|
||||||
|
@ -101,12 +104,7 @@ export function ReportProfile() {
|
||||||
error={errors.description?.message}
|
error={errors.description?.message}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<Button
|
<Button className="report-profile__submit">{t("report")}</Button>
|
||||||
className="report-profile__submit"
|
|
||||||
onClick={handleSubmit(onSubmit)}
|
|
||||||
>
|
|
||||||
{t("report")}
|
|
||||||
</Button>
|
|
||||||
</form>
|
</form>
|
||||||
</Modal>
|
</Modal>
|
||||||
|
|
||||||
|
|
|
@ -74,7 +74,10 @@ export function AddThemeModal({
|
||||||
description={t("create_theme_modal_description")}
|
description={t("create_theme_modal_description")}
|
||||||
onClose={onClose}
|
onClose={onClose}
|
||||||
>
|
>
|
||||||
<form className="add-theme-modal__container">
|
<form
|
||||||
|
onSubmit={handleSubmit(onSubmit)}
|
||||||
|
className="add-theme-modal__container"
|
||||||
|
>
|
||||||
<TextField
|
<TextField
|
||||||
{...register("name")}
|
{...register("name")}
|
||||||
label={t("theme_name")}
|
label={t("theme_name")}
|
||||||
|
@ -83,11 +86,7 @@ export function AddThemeModal({
|
||||||
error={errors.name?.message}
|
error={errors.name?.message}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<Button
|
<Button theme="primary" disabled={isSubmitting}>
|
||||||
theme="primary"
|
|
||||||
onClick={handleSubmit(onSubmit)}
|
|
||||||
disabled={isSubmitting}
|
|
||||||
>
|
|
||||||
{t("create_theme")}
|
{t("create_theme")}
|
||||||
</Button>
|
</Button>
|
||||||
</form>
|
</form>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue