Skip to content

Commit

Permalink
feat/project-contribution: Fixed resetissue
Browse files Browse the repository at this point in the history
  • Loading branch information
Thangaraj-Ideas2it committed Nov 8, 2023
1 parent 2a7ce0c commit d3f11e3
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -438,6 +438,8 @@ export function EditMemberModal({
setErrors([]);
setBasicErrors([]);
setSkillErrors([]);
setContributionErrors([]);
setContributionObjErrors([])
getMemberDetails();
setModified(false);
setModifiedFlag(false);
Expand Down Expand Up @@ -815,7 +817,7 @@ export function EditMemberModal({
}

const onTabClicked = (tab) => {
const tabs = ['BASIC', 'SKILLS', 'SOCIAL'];
const tabs = ['BASIC', 'SKILLS', 'CONTRIBUTIONS', 'SOCIAL'];
analytics.captureEvent(
isUserProfile
? APP_ANALYTICS_EVENTS.SETTINGS_USER_PROFILE_EDIT_FORM
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export function MemberEmptyProject({
<>
{userInfo?.uid == member?.id && member?.githubHandle ? (
<div className="w-full rounded-xl border bg-gray-50 p-3 text-center">
<p>No projects to display</p>
<p>No repositories to display</p>
</div>
) : (
<>
Expand Down Expand Up @@ -59,7 +59,7 @@ export function MemberEmptyProject({
<p className="flex items-center gap-0.5">
{member?.githubHandle ? (
<div className="w-full rounded-xl bg-gray-50 text-center">
<p>No projects to display</p>
<p>No repositories to display</p>
</div>
) : (
<>
Expand All @@ -75,7 +75,7 @@ export function MemberEmptyProject({
</>
)}
<span />

</p>
</div>
)}
Expand Down
5 changes: 5 additions & 0 deletions apps/web-app/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,11 @@ export const APP_ANALYTICS_EVENTS = {
TEAM_EDIT_BY_LEAD: 'team-edit-by-lead',
TEAM_EDIT_BY_ADMIN: 'team-edit-by-admin',

PR_CONRTIBUTIONS_LIST_ITEM_ADD: 'pr-contributions-list-item-add',
PR_CONRTIBUTIONS_LIST_ITEM_DELETE: 'pr-contributions-list-item-delete',
PR_CONRTIBUTIONS_LIST_ITEM_EXPANDED: 'pr-contributions-list-item-expanded',
PR_CONRTIBUTIONS_LIST_ITEM_COLLAPSED: 'pr-contributions-list-item-collapsed',

FILTERS_APPLIED: 'filters-applied',

}
Expand Down

0 comments on commit d3f11e3

Please sign in to comment.