Skip to content

Commit

Permalink
feat(certificate): remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
nidhigarg-bmw committed Jul 11, 2023
1 parent 9bdc7be commit 5ed6207
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 149 deletions.
144 changes: 0 additions & 144 deletions src/components/pages/CertificateCredentials/CertificateElements.tsx

This file was deleted.

5 changes: 2 additions & 3 deletions src/components/pages/CertificateCredentials/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ import {
CertificateResponse,
useFetchCertificatesQuery,
} from 'features/certification/certificationApiSlice'
import { Card3 } from 'components/shared/basic/Certificatecard'
import { CertificateCard } from 'components/shared/basic/CertificateCard'

enum FilterType {
UPLOADED = 'Uploaded',
Expand Down Expand Up @@ -109,7 +109,6 @@ export default function CertificateCredentials() {
const { t } = useTranslation()

const { data } = useFetchCertificatesQuery()
console.log('data', data)

const [{ searchExpr, showModal, selected, sortOption }, setState] =
useReducer(reducer, initialState)
Expand Down Expand Up @@ -245,7 +244,7 @@ export default function CertificateCredentials() {
className="certificate-card"
key={item.credentialType}
>
<Card3
<CertificateCard
credentialType={item.credentialType}
ssiDetailData={item.ssiDetailData}
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export interface CertificateData {
ssiDetailData: SSIDetailData
}

export const Card3 = ({
export const CertificateCard = ({
credentialType,
ssiDetailData,
}: CertificateResponse) => {
Expand Down
2 changes: 1 addition & 1 deletion src/types/Config.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@ export const ALL_PAGES: IPage[] = [
},
{
name: PAGES.CERTIFICATE_CREDENTIAL,
//role: ROLES.MANAGE_COMPANY_CREDENTIALS,
role: ROLES.MANAGE_COMPANY_CREDENTIALS,
element: <CertificateCredentials />,
},
]
Expand Down

0 comments on commit 5ed6207

Please sign in to comment.