diff --git a/src/components/Common/Badge/index.tsx b/src/components/Common/Badge/index.tsx
index ec13c05d0..17eda5b1d 100644
--- a/src/components/Common/Badge/index.tsx
+++ b/src/components/Common/Badge/index.tsx
@@ -9,8 +9,7 @@ interface BadgeProps {
| 'warning'
| 'success'
| 'dark'
- | 'light'
- | 'gradient';
+ | 'light';
className?: string;
href?: string;
children: React.ReactNode;
@@ -67,11 +66,6 @@ const Badge = (
badgeStyle.push('hover:bg-gray-600');
}
break;
- case 'gradient':
- badgeStyle.push(
- 'border border-white bg-gradient-to-br from-indigo-600 to-purple-600 !text-indigo-100 shadow-black'
- );
- break;
default:
badgeStyle.push(
'bg-indigo-500 bg-opacity-80 border border-indigo-500 !text-indigo-100'
diff --git a/src/components/IssueDetails/index.tsx b/src/components/IssueDetails/index.tsx
index 4fbe71452..171f90a81 100644
--- a/src/components/IssueDetails/index.tsx
+++ b/src/components/IssueDetails/index.tsx
@@ -31,8 +31,7 @@ import { useRouter } from 'next/router';
import { useState } from 'react';
import { defineMessages, FormattedRelativeTime, useIntl } from 'react-intl';
import { useToasts } from 'react-toast-notifications';
-import useSWR from 'swr';
-import useSWRMutation from 'swr/mutation';
+import useSWR, { mutate } from 'swr';
import * as Yup from 'yup';
const messages = defineMessages({
@@ -105,16 +104,6 @@ const IssueDetails = () => {
(opt) => opt.issueType === issueData?.issueType
);
- const fetchIssuesCount = async () => {
- const response = await axios.get('/api/v1/request/count');
- return response.data;
- };
-
- const { trigger: issueTrigger } = useSWRMutation(
- '/api/v1/issue/count',
- fetchIssuesCount
- );
-
if (!data && !error) {
return