feat: adding deeplink for profile

This commit is contained in:
Chubby Granny Chaser 2025-02-16 19:13:12 +00:00
parent d1dc27aef6
commit e3a4f12140
No known key found for this signature in database
3 changed files with 16 additions and 13 deletions

View file

@ -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") {

View file

@ -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>

View file

@ -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>