Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
frankyhollywood committed Dec 20, 2023
1 parent c5da6fb commit 95d9e42
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions projects/mercury/src/metadata/common/LinkedDataLink.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
/* eslint-disable */
import React, {useContext} from 'react';
import * as PropTypes from "prop-types";
import {Box, Modal, Tooltip} from '@mui/material';
import CloseIcon from '@mui/icons-material/Close';
import LinkedDataEntityPage from "./LinkedDataEntityPage";
import {MetadataWrapper} from '../LinkedDataWrapper';
import UserContext from '../../users/UserContext';
/**
* Renders a link to the metadata editor.
Expand All @@ -26,7 +24,7 @@ const styleModalDialog = {
};
const styleCloseButton = {
float: 'right'
}
};

const getModal = (open, handleClose, uri) => (
<Modal
Expand All @@ -37,14 +35,12 @@ const getModal = (open, handleClose, uri) => (
>
<Box sx={styleModalDialog}>
<Tooltip title="Close - click or press 'Esc'">
<CloseIcon onClick={handleClose} sx={styleCloseButton}></CloseIcon>
<CloseIcon onClick={handleClose} sx={styleCloseButton} />
</Tooltip>
<MetadataWrapper>
<LinkedDataEntityPage title="Metadata" subject={uri} />
</MetadataWrapper>
<LinkedDataEntityPage title="Metadata" subject={uri} />
</Box>
</Modal>
)
);

const LinkedDataLink = ({uri, children}) => {
const [open, setOpen] = React.useState(false);
Expand Down

0 comments on commit 95d9e42

Please sign in to comment.