Skip to content

Commit

Permalink
feat(usecase): remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
nidhigarg-bmw committed Jul 12, 2023
1 parent e34ba6e commit 477c886
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions src/components/overlays/EditUsecase/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
* SPDX-License-Identifier: Apache-2.0
********************************************************************************/

import { useState } from 'react'
import { useTranslation } from 'react-i18next'
import { useDispatch } from 'react-redux'
import {
Button,
Checkbox,
Expand All @@ -27,17 +30,13 @@ import {
DropAreaProps,
LoadingButton,
} from '@catena-x/portal-shared-components'
import { useTranslation } from 'react-i18next'
import { fetchAny } from 'features/admin/userOwn/actions'
import { useEffect, useState } from 'react'
import { useDispatch } from 'react-redux'
import './style.scss'
import { error, success } from 'services/NotifyService'
import { OVERLAYS } from 'types/Constants'
import { closeOverlay, show } from 'features/control/overlay'
import { store } from 'features/store'
import { Dropzone } from '../../shared/basic/Dropzone'
import { useAddUsecaseMutation } from 'features/usecase/usecaseApiSlice'
import { error, success } from 'services/NotifyService'
import './style.scss'

export default function EditUsecase({
id: verifiedCredentialTypeId,
Expand All @@ -54,10 +53,6 @@ export default function EditUsecase({

const [addUsecase] = useAddUsecaseMutation()

useEffect(() => {
dispatch(fetchAny(credentialType))
}, [dispatch, credentialType])

const renderDropArea = (props: DropAreaProps) => {
return <DropArea {...props} size="small" />
}
Expand Down

0 comments on commit 477c886

Please sign in to comment.