Skip to content
Open
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions modules/imaging_qc/jsx/imagingQCIndex.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ import React, {Component} from 'react';
import Loader from 'Loader';
import FilterableDataTable from 'FilterableDataTable';
import PropTypes from 'prop-types';

import {withTranslation} from 'react-i18next';
import i18n from 'I18nSetup';
/**
* Imaging Quality Control React Component
*/
Expand Down Expand Up @@ -253,10 +254,10 @@ ImagingQCIndex.propTypes = {
};

window.addEventListener('load', () => {
createRoot(
document.getElementById('lorisworkspace')
).render(
<ImagingQCIndex
i18n.addResourceBundle('jp', 'loris', {}, true, true);
const ImagingQC = withTranslation(['loris'])(ImagingQCIndex);
createRoot(document.getElementById('lorisworkspace')).render(
<ImagingQC
ImgDataURL={`${loris.BaseURL}/imaging_qc/?format=json`}
hasPermission={loris.userHasPermission}
/>
Expand Down
Loading