Skip to content

Commit

Permalink
Fix issue on friendship action buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
parinithshekar committed Jun 16, 2021
1 parent fdcb92e commit 4f8aa14
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { useMutation } from '@apollo/client';
import { Button } from '@material-ui/core';
import { DECLINE_FRIENDSHIP } from '../../../utils/GraphQLRequests';
import SnackbarContext from '../../../contexts/SnackbarContext';
import { catchErrorOnMutation } from '../../../utils/CommonUtils';
import { TOAST_SEVERITY_ERROR, TOAST_SEVERITY_SUCCESS } from '../../../utils/Constants';

function DeclineFriendshipButton({ username, tag, refetch }) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { useMutation } from '@apollo/client';
import { Button } from '@material-ui/core';
import { DELETE_REQUEST } from '../../../utils/GraphQLRequests';
import SnackbarContext from '../../../contexts/SnackbarContext';
import { catchErrorOnMutation } from '../../../utils/CommonUtils';
import { TOAST_SEVERITY_ERROR, TOAST_SEVERITY_SUCCESS } from '../../../utils/Constants';

function DeleteRequestButton({ username, tag, refetch }) {
Expand Down
1 change: 1 addition & 0 deletions src/components/profile/actionButtons/UnblockUserButton.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { useMutation } from '@apollo/client';
import { Button } from '@material-ui/core';
import { UNBLOCK_USER } from '../../../utils/GraphQLRequests';
import SnackbarContext from '../../../contexts/SnackbarContext';
import { catchErrorOnMutation } from '../../../utils/CommonUtils';
import { TOAST_SEVERITY_ERROR, TOAST_SEVERITY_SUCCESS } from '../../../utils/Constants';

function UnblockUserButton({ username, tag, refetch }) {
Expand Down

0 comments on commit 4f8aa14

Please sign in to comment.