Skip to content

Commit

Permalink
MVP Talawa Admin : Hiding Chat Feature from Talawa Web App (#1078)
Browse files Browse the repository at this point in the history
* chat changes

* test case
  • Loading branch information
duplixx authored Nov 25, 2023
1 parent 8b1a128 commit b715863
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
6 changes: 3 additions & 3 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ import Settings from 'screens/UserPortal/Settings/Settings';
import Donate from 'screens/UserPortal/Donate/Donate';
import Events from 'screens/UserPortal/Events/Events';
import Tasks from 'screens/UserPortal/Tasks/Tasks';
// import Chat from 'screens/UserPortal/Chat/Chat';
import Advertisements from 'components/Advertisements/Advertisements';
import Chat from 'screens/UserPortal/Chat/Chat';


function app(): JSX.Element {
/*const { updatePluginLinks, updateInstalled } = bindActionCreators(
actionCreators,
Expand Down Expand Up @@ -130,7 +130,7 @@ function app(): JSX.Element {
<SecuredRouteForUser path="/user/donate" component={Donate} />
<SecuredRouteForUser path="/user/events" component={Events} />
<SecuredRouteForUser path="/user/tasks" component={Tasks} />
<SecuredRouteForUser path="/user/chat" component={Chat} />
{/* <SecuredRouteForUser path="/user/chat" component={Chat} /> */}

<Route exact path="*" component={PageNotFound} />
</Switch>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ describe('Testing OrganizationNavbar Component [User Portal]', () => {
expect(screen.getByText('People')).toBeInTheDocument();
expect(screen.getByText('Events')).toBeInTheDocument();
expect(screen.getByText('Donate')).toBeInTheDocument();
expect(screen.getByText('Chat')).toBeInTheDocument();
// expect(screen.getByText('Chat')).toBeInTheDocument();
});

test('The language is switched to English', async () => {
Expand Down Expand Up @@ -135,7 +135,7 @@ describe('Testing OrganizationNavbar Component [User Portal]', () => {
expect(screen.getByText('People')).toBeInTheDocument();
expect(screen.getByText('Events')).toBeInTheDocument();
expect(screen.getByText('Donate')).toBeInTheDocument();
expect(screen.getByText('Chat')).toBeInTheDocument();
// expect(screen.getByText('Chat')).toBeInTheDocument();
});

test('The language is switched to fr', async () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,13 +84,13 @@ function organizationNavbar(props: InterfaceNavbarProps): JSX.Element {
translated: t('donate'),
view: true,
},
{
pluginName: 'Chats',
alias: 'chat',
link: `/user/chat/id=${organizationId}`,
translated: t('chat'),
view: true,
},
// {
// pluginName: 'Chats',
// alias: 'chat',
// link: `/user/chat/id=${organizationId}`,
// translated: t('chat'),
// view: true,
// },
];
if (localStorage.getItem('talawaPlugins')) {
const talawaPlugins: string = localStorage.getItem('talawaPlugins') || '{}';
Expand Down

0 comments on commit b715863

Please sign in to comment.