Skip to content

Commit

Permalink
Updated help text for DOI
Browse files Browse the repository at this point in the history
  • Loading branch information
BryceMarshall committed Nov 6, 2023
1 parent 8bc1a56 commit 527d3b0
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/components/Tabs/IdentificationTab.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ const IdentificationTab = ({

async function handleUpdateDraftDOI() {
setLoadingDoiUpdate(true);

try {
const mappedDataCiteObject = recordToDataCite(record);
delete mappedDataCiteObject.data.type;
Expand All @@ -141,7 +141,7 @@ const IdentificationTab = ({

const response = await updateDraftDoi( dataObject );
const statusCode = response.data.status;

if (statusCode === 200) {
setDoiUpdateFlag(true);
} else {
Expand Down Expand Up @@ -701,7 +701,7 @@ const IdentificationTab = ({
<En>What is the DOI for this dataset? Eg,</En>
<Fr>Quel est le DOI de ce jeu de données ? Par exemple,</Fr>
</I18n>{" "}
10.0000/0000
https://doi.org/10.0000/0000
{showGenerateDoi && (
<SupplementalText>
<I18n>
Expand Down Expand Up @@ -738,8 +738,8 @@ const IdentificationTab = ({
</Button>
)}
{showUpdateDoi && (
<Button
onClick={handleUpdateDraftDOI}
<Button
onClick={handleUpdateDraftDOI}
style={{ display: 'inline' }}
>
<div style={{ display: "flex", alignItems: "center" }}>
Expand All @@ -755,8 +755,8 @@ const IdentificationTab = ({
</Button>
)}
{showDeleteDoi && (
<Button
onClick={handleDeleteDOI}
<Button
onClick={handleDeleteDOI}
style={{ display: "inline" }}
>
<div style={{ display: "flex", alignItems: "center" }}>
Expand Down

0 comments on commit 527d3b0

Please sign in to comment.