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") {
WindowManager.redirect(`settings${url.search}`);
return;
}
if (url.host === "profile") {
WindowManager.redirect(`profile${url.search}`);
return;
}
if (url.host === "install-theme") {

View file

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

View file

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