Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add Feedback to UserProfile #349

Merged
merged 7 commits into from
Mar 25, 2024
Merged

feat: Add Feedback to UserProfile #349

merged 7 commits into from
Mar 25, 2024

Conversation

Xavier-Charles
Copy link
Contributor

Screenshot 2024-03-25 at 12 21 44 Screenshot 2024-03-25 at 12 22 13

@Xavier-Charles Xavier-Charles marked this pull request as ready for review March 25, 2024 11:23
Copy link
Member

@elcharitas elcharitas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks Charles

const prevIsSavingProfile = usePrevious(isSavingProfile);

useEffect(() => {
if (prevIsSavingProfile === true && isSavingProfile === false) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tbh I'm okay with this, but I think we can have this check and state chaneg outside of the effect,

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes the effect looks unnecessary

@@ -102,6 +104,14 @@ const UserSettings: FC<IUserSettings> = ({
const [showProfileEditModal, setShowProfileEditModal] =
useState<boolean>(false);
const history = useHistory();
const [isProfileUpdated, setisProfileUpdated] = useState(false);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please fix this declaration, it should be setIsProfileUpdated unless I'm missing something

Copy link
Contributor

@v-almonacid v-almonacid left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

isSavingProfile ||
handle === undefined ||
profile?.handle === handle
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@Xavier-Charles Xavier-Charles marked this pull request as draft March 25, 2024 16:42
@Xavier-Charles Xavier-Charles marked this pull request as ready for review March 25, 2024 16:42
@Xavier-Charles Xavier-Charles merged commit ce1fb78 into dev Mar 25, 2024
1 check passed
@Xavier-Charles Xavier-Charles deleted the ALPHA-4771 branch March 25, 2024 16:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants