Skip to content

Commit

Permalink
Add: plugin logic
Browse files Browse the repository at this point in the history
  • Loading branch information
SiddheshKukade committed Sep 23, 2023
1 parent e44817c commit b76db4d
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,8 @@ function organizationNavbar(props: InterfaceNavbarProps): JSX.Element {
const talawaPlugins: string = localStorage.getItem('talawaPlugins') || '{}';
plugins = JSON.parse(talawaPlugins);
}
// const { data: pluginDataFromServer, loading, error } = useQuery(PLUGIN_GET);
const { data: updatedPluginData, loading: loadingSub } = useSubscription(
// eslint-disable-next-line @typescript-eslint/no-unused-vars
const { data: updatedPluginData, loading: _loadingSub } = useSubscription(
PLUGIN_SUBSCRIPTION
// { variables: { } }
);
Expand Down
1 change: 0 additions & 1 deletion src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import {
ApolloClient,
ApolloProvider,
InMemoryCache,
ApolloLink,
HttpLink,
split,
} from '@apollo/client';
Expand Down
16 changes: 0 additions & 16 deletions src/screens/UserPortal/Organizations/Organizations.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,22 +21,6 @@ interface InterfaceOrganizationCardProps {
image: string;
description: string;
}
/**
*
* Sample response
*
// Response received at 23:00:31
{
"data": {
"onPluginUpdate": {
"pluginName": "test11",
"_id": "650c7db726ea4830a02b3081",
"pluginDesc": "Testing plugin creation",
"uninstalledOrgs": []
}
}
}
*/
export default function organizations(): JSX.Element {
const { t } = useTranslation('translation', {
keyPrefix: 'userOrganizations',
Expand Down

0 comments on commit b76db4d

Please sign in to comment.