Skip to content

Commit

Permalink
style: address eslint nits
Browse files Browse the repository at this point in the history
  • Loading branch information
fboulnois committed Mar 1, 2024
1 parent 2c6b115 commit e067e23
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/components/SimpleTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ export default function SimpleTable(props) {

const {baseStyle, columnStyle, containerOverride} = styles;
const columnRow = <ColumnRow key="column-row-container" columnHeaders={columnHeaders} baseStyle={baseStyle} columnStyle={columnStyle} sort={sort} onSort={onSort} />;
const tableTemplate = [ columnRow, <DataRows rowData={rowData} baseStyle={baseStyle} columnHeaders={columnHeaders} rowWrapper={rowWrapper} key="table-data-rows" /> ];
const tableTemplate = [columnRow, <DataRows rowData={rowData} baseStyle={baseStyle} columnHeaders={columnHeaders} rowWrapper={rowWrapper} key="table-data-rows" />];
const output = isLoading ? <TableLoading /> : tableTemplate;
return (
<div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export default function DACDatasetApprovalStatus(props) {
} catch {
Notifications.showError({text: `Error deleting dataset '${name}'`});
}
}
};

const updateApprovalStatus = async (approvalState) => {
const updatedDataset = await DAC.updateApprovalStatus(dataset.dacId, dataset.dataSetId, approvalState);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export function datasetNameCellData({dataset, label = 'datasetNameCellData'}) {
export function dataCustodianCellData({dataset, label = 'dataCustodianCellData'}) {
// Newer datasets have a list of data custodian emails.
// Older datasets may or may not have a data depositor
const displayValue = firstNonEmptyPropertyValue(dataset, [ 'Data Custodian Email', 'Data Depositor', 'dataCustodianEmail' ]);
const displayValue = firstNonEmptyPropertyValue(dataset, ['Data Custodian Email', 'Data Depositor', 'dataCustodianEmail']);
return {
data: <div className={style['cell-data']}>{displayValue}</div>,
value: displayValue,
Expand Down
2 changes: 1 addition & 1 deletion src/pages/dar_application/ResearcherInfo.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export default function ResearcherInfo(props) {
!readOnlyMode && Alert({
id: 'profileSubmitted',
type: 'danger',
title: span({ className: 'errored' }, [
title: span({ className: 'errored' }, [
`You must submit `, profileLink, ` and obtain a `, libraryCardLink,
` from your Signing official before you can submit a Data Access Request.`
])
Expand Down

0 comments on commit e067e23

Please sign in to comment.