File tree Expand file tree Collapse file tree
frontend/src/ts/components/pages/profile Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ import { addFriend, isFriend } from "../../../db";
1919import * as UserReportModal from "../../../modals/user-report" ;
2020import { bp } from "../../../states/breakpoints" ;
2121import { getUserId , isAuthenticated } from "../../../states/core" ;
22+ import { showModal } from "../../../states/modals" ;
2223import {
2324 showNoticeNotification ,
2425 showErrorNotification ,
@@ -36,8 +37,6 @@ import { DiscordAvatar } from "../../common/DiscordAvatar";
3637import { UserBadge } from "../../common/UserBadge" ;
3738import { UserFlags } from "../../common/UserFlags" ;
3839import { EditProfile } from "../../popups/EditProfile" ;
39- import { showModal } from "../../../states/modals" ;
40-
4140
4241type Variant = "basic" | "hasSocials" | "hasBioOrKeyboard" | "full" ;
4342
@@ -100,6 +99,9 @@ export function UserDetails(props: {
10099 isAccountPage = { props . isAccountPage }
101100 />
102101 </ div >
102+ < Show when = { props . isAccountPage === true } >
103+ < EditProfile />
104+ </ Show >
103105 </ div >
104106 ) ;
105107}
@@ -178,7 +180,7 @@ function ActionButtons(props: {
178180 showNoticeNotification ( "Banned users cannot edit their profile" ) ;
179181 return ;
180182 }
181- EditProfileModal . show ( ) ;
183+ showModal ( "EditProfile" ) ;
182184 } }
183185 />
184186 < Button
You can’t perform that action at this time.
0 commit comments