Linting
This commit is contained in:
@@ -4,6 +4,7 @@ import { useIdeContext } from 'src/helpers/hooks/useIdeContext'
|
||||
import { createRemoveUpdate, updateTree } from 'react-mosaic-component'
|
||||
import type { MosaicPath } from 'react-mosaic-component'
|
||||
import Toggle from 'src/components/Toggle'
|
||||
import type { MosaicTree } from 'src/helpers/hooks/useIdeState'
|
||||
|
||||
interface SidebarConfigType {
|
||||
name: string
|
||||
@@ -12,11 +13,6 @@ interface SidebarConfigType {
|
||||
panel: ReactNode | null
|
||||
}
|
||||
|
||||
interface MosaicTree {
|
||||
first: string | MosaicTree
|
||||
second: string | MosaicTree
|
||||
}
|
||||
|
||||
const getPathById = (
|
||||
tree: MosaicTree,
|
||||
id: string,
|
||||
|
||||
@@ -12,14 +12,6 @@ const DELETE_SUBJECT_ACCESS_REQUEST_MUTATION = gql`
|
||||
}
|
||||
`
|
||||
|
||||
const jsonDisplay = (obj) => {
|
||||
return (
|
||||
<pre>
|
||||
<code>{JSON.stringify(obj, null, 2)}</code>
|
||||
</pre>
|
||||
)
|
||||
}
|
||||
|
||||
const timeTag = (datetime) => {
|
||||
return (
|
||||
<time dateTime={datetime} title={datetime}>
|
||||
@@ -28,10 +20,6 @@ const timeTag = (datetime) => {
|
||||
)
|
||||
}
|
||||
|
||||
const checkboxInputTag = (checked) => {
|
||||
return <input type="checkbox" checked={checked} disabled />
|
||||
}
|
||||
|
||||
const SubjectAccessRequest = ({ subjectAccessRequest }) => {
|
||||
const [deleteSubjectAccessRequest] = useMutation(
|
||||
DELETE_SUBJECT_ACCESS_REQUEST_MUTATION,
|
||||
@@ -102,13 +90,12 @@ const SubjectAccessRequest = ({ subjectAccessRequest }) => {
|
||||
>
|
||||
Edit
|
||||
</Link>
|
||||
<a
|
||||
href="#"
|
||||
<button
|
||||
className="rw-button rw-button-red"
|
||||
onClick={() => onDeleteClick(subjectAccessRequest.id)}
|
||||
>
|
||||
Delete
|
||||
</a>
|
||||
</button>
|
||||
</nav>
|
||||
</>
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user