Skip to content

Commit

Permalink
MBS-13838: Convert EditProfileForm to component syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
reosarevok committed Nov 28, 2024
1 parent 1969cdf commit 624f094
Show file tree
Hide file tree
Showing 2 changed files with 279 additions and 254 deletions.
4 changes: 1 addition & 3 deletions root/account/EditProfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,10 @@ import UserAccountLayout, {
} from '../components/UserAccountLayout.js';
import {CatalystContext} from '../context.mjs';
import manifest from '../static/manifest.mjs';
import type {EditProfileFormPropsT}
from '../static/scripts/account/components/EditProfileForm.js';
import EditProfileForm
from '../static/scripts/account/components/EditProfileForm.js';

component EditProfile(...props: EditProfileFormPropsT) {
component EditProfile(...props: React.PropsOf<EditProfileForm>) {
const $c = React.useContext(CatalystContext);
const user = $c.user;
if (!user) {
Expand Down
Loading

0 comments on commit 624f094

Please sign in to comment.