Skip to content

Commit

Permalink
Revert "[#1123] Changes position and text of "All Organizations" butt…
Browse files Browse the repository at this point in the history
…on (#1124)" (#1183)

This reverts commit 1fd4105.
  • Loading branch information
noman2002 authored Dec 12, 2023
1 parent 1fd4105 commit 9ff2924
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion src/GraphQl/Queries/Queries.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import gql from 'graphql-tag';

// Query List
//Query List

// Check Auth

Expand Down
8 changes: 4 additions & 4 deletions src/components/IconComponent/IconComponent.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@ import { render, screen } from '@testing-library/react';
import IconComponent from './IconComponent';

const screenTestIdMap: Record<string, Record<string, string>> = {
AllOrganizations: {
name: 'My Organizations',
testId: 'Icon-Component-AllOrganizationsIcon',
},
Dashboard: {
name: 'Dashboard',
testId: 'Icon-Component-DashboardIcon',
Expand Down Expand Up @@ -35,6 +31,10 @@ const screenTestIdMap: Record<string, Record<string, string>> = {
name: 'Settings',
testId: 'Icon-Component-SettingsIcon',
},
AllOrganizations: {
name: 'All Organizations',
testId: 'Icon-Component-AllOrganizationsIcon',
},
EventProject: {
name: 'Add Event Project',
testId: 'Icon-Component-Add-Event-Project',
Expand Down
2 changes: 1 addition & 1 deletion src/components/IconComponent/IconComponent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ const iconComponent = (props: InterfaceIconComponent): JSX.Element => {
data-testid="Icon-Component-SettingsIcon"
/>
);
case 'My Organizations':
case 'All Organizations':
return (
<OrganizationsIcon
stroke={props.fill}
Expand Down
12 changes: 6 additions & 6 deletions src/state/reducers/routesReducer.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ describe('Testing Routes reducer', () => {
})
).toEqual({
targets: [
{ name: 'My Organizations', url: '/orglist/id=undefined' },
{ name: 'Dashboard', url: '/orgdash/id=undefined' },
{ name: 'People', url: '/orgpeople/id=undefined' },
{ name: 'Events', url: '/orgevents/id=undefined' },
Expand All @@ -31,10 +30,10 @@ describe('Testing Routes reducer', () => {
],
},
{ name: 'Settings', url: '/orgsetting/id=undefined' },
{ name: 'All Organizations', url: '/orglist/id=undefined' },
],
configUrl: 'undefined',
components: [
{ name: 'My Organizations', comp_id: 'orglist', component: 'OrgList' },
{
name: 'Dashboard',
comp_id: 'orgdash',
Expand Down Expand Up @@ -71,6 +70,7 @@ describe('Testing Routes reducer', () => {
],
},
{ name: 'Settings', comp_id: 'orgsetting', component: 'OrgSettings' },
{ name: 'All Organizations', comp_id: 'orglist', component: 'OrgList' },
{ name: '', comp_id: 'member', component: 'MemberDetail' },
],
});
Expand All @@ -84,7 +84,6 @@ describe('Testing Routes reducer', () => {
})
).toEqual({
targets: [
{ name: 'My Organizations', url: '/orglist/id=undefined' },
{ name: 'Dashboard', url: '/orgdash/id=undefined' },
{ name: 'People', url: '/orgpeople/id=undefined' },
{ name: 'Events', url: '/orgevents/id=undefined' },
Expand All @@ -102,11 +101,11 @@ describe('Testing Routes reducer', () => {
],
},
{ name: 'Settings', url: '/orgsetting/id=undefined' },
{ name: 'All Organizations', url: '/orglist/id=undefined' },
{ test: 'testupdate' },
],
configUrl: 'undefined',
components: [
{ name: 'My Organizations', comp_id: 'orglist', component: 'OrgList' },
{
name: 'Dashboard',
comp_id: 'orgdash',
Expand Down Expand Up @@ -143,6 +142,7 @@ describe('Testing Routes reducer', () => {
],
},
{ name: 'Settings', comp_id: 'orgsetting', component: 'OrgSettings' },
{ name: 'All Organizations', comp_id: 'orglist', component: 'OrgList' },
{ name: '', comp_id: 'member', component: 'MemberDetail' },
],
});
Expand All @@ -156,7 +156,6 @@ describe('Testing Routes reducer', () => {
})
).toEqual({
targets: [
{ name: 'My Organizations', url: '/orglist/id=undefined' },
{ name: 'Dashboard', url: '/orgdash/id=undefined' },
{ name: 'People', url: '/orgpeople/id=undefined' },
{ name: 'Events', url: '/orgevents/id=undefined' },
Expand All @@ -167,6 +166,7 @@ describe('Testing Routes reducer', () => {
},
{ name: 'Advertisement', url: '/orgads/id=undefined' },
{ name: 'Settings', url: '/orgsetting/id=undefined' },
{ name: 'All Organizations', url: '/orglist/id=undefined' },
{
comp_id: null,
component: null,
Expand All @@ -183,7 +183,6 @@ describe('Testing Routes reducer', () => {
],
configUrl: 'undefined',
components: [
{ name: 'My Organizations', comp_id: 'orglist', component: 'OrgList' },
{
name: 'Dashboard',
comp_id: 'orgdash',
Expand Down Expand Up @@ -221,6 +220,7 @@ describe('Testing Routes reducer', () => {
],
},
{ name: 'Settings', comp_id: 'orgsetting', component: 'OrgSettings' },
{ name: 'All Organizations', comp_id: 'orglist', component: 'OrgList' },
{ name: '', comp_id: 'member', component: 'MemberDetail' },
],
});
Expand Down
2 changes: 1 addition & 1 deletion src/state/reducers/routesReducer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ export type TargetsType = {

// Note: Routes with names appear on NavBar
const components: ComponentType[] = [
{ name: 'My Organizations', comp_id: 'orglist', component: 'OrgList' },
{ name: 'Dashboard', comp_id: 'orgdash', component: 'OrganizationDashboard' },
{ name: 'People', comp_id: 'orgpeople', component: 'OrganizationPeople' },
{ name: 'Events', comp_id: 'orgevents', component: 'OrganizationEvents' },
Expand All @@ -85,6 +84,7 @@ const components: ComponentType[] = [
},

{ name: 'Settings', comp_id: 'orgsetting', component: 'OrgSettings' },
{ name: 'All Organizations', comp_id: 'orglist', component: 'OrgList' },
{ name: '', comp_id: 'member', component: 'MemberDetail' },
];

Expand Down

0 comments on commit 9ff2924

Please sign in to comment.