Skip to content

Commit

Permalink
more indent fix
Browse files Browse the repository at this point in the history
  • Loading branch information
cinyecai committed Nov 15, 2024
1 parent 0c73e4e commit b250f8e
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions src/components/data_search/DatasetSearchTableConstants.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -256,25 +256,25 @@ export const makeDatasetTableHeader = (datasets: DatasetTerm[], selected: number
const tooltipIconDisplay = (src: string | undefined, accessType: string, tooltipText: string) => {
return <>
<div
data-tip='Full details'
data-for={`${accessType}-access-tooltip`}
style={{display: 'flex', justifyContent: 'center', marginRight: 20}}
data-tip='Full details'
data-for={`${accessType}-access-tooltip`}
style={{display: 'flex', justifyContent: 'center', marginRight: 20}}
>
<img src={src}/>
</div>
<ReactTooltip
place={'bottom'}
effect={'solid'}
disable={false}
scrollHide={true}
id={`${accessType}-access-tooltip`}><div style={tooltipStyle}>{tooltipText}</div></ReactTooltip>
</>
place={'bottom'}
effect={'solid'}
disable={false}
scrollHide={true}
id={`${accessType}-access-tooltip`}><div style={tooltipStyle}>{tooltipText}</div></ReactTooltip>
</>;
};

return [
{
label: <Checkbox checked={datasets.length === selected.length}
indeterminate={selected.length > 0 && selected.length < datasets.length}
indeterminate={selected.length > 0 && selected.length < datasets.length}
onClick={() => onSelect(selectableDatasetIds.length === selected.length ? [] : selectableDatasetIds)}/>,
sortable: false,
cellStyle: makeHeaderStyle(cellWidths.selected),
Expand Down Expand Up @@ -351,11 +351,11 @@ export const makeDatasetTableHeader = (datasets: DatasetTerm[], selected: number
cellDataFn: (dataset: DatasetTerm) => ({
data: dataset.accessManagement === 'external' ?
tooltipIconDisplay(externalAccessIcon, 'external', 'External access request required') :
dataset.accessManagement === 'open' ?
tooltipIconDisplay(openAccessIcon, 'open', 'Open access') :
dataset.accessManagement === 'controlled' ?
tooltipIconDisplay(controlledAccessIcon, 'controlled', 'Controlled access') :
'',
dataset.accessManagement === 'open' ?
tooltipIconDisplay(openAccessIcon, 'open', 'Open access') :
dataset.accessManagement === 'controlled' ?
tooltipIconDisplay(controlledAccessIcon, 'controlled', 'Controlled access') :
'',
value: dataset.accessManagement,
id: `${dataset.datasetId}-participant-count`,
style: makeRowStyle(cellWidths.accessType),
Expand Down

0 comments on commit b250f8e

Please sign in to comment.