Skip to content

Commit

Permalink
Enable HTML in study access dashboard's title
Browse files Browse the repository at this point in the history
  • Loading branch information
jernestmyers committed May 6, 2024
1 parent 8b14eb8 commit e3c2c57
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import React from 'react';

import { makeClassNameHelper } from '@veupathdb/wdk-client/lib/Utils/ComponentUtils';
import {
makeClassNameHelper,
safeHtml,
} from '@veupathdb/wdk-client/lib/Utils/ComponentUtils';

import { UserTableDialog } from './UserTableDialog';
import { UserTableSection } from './UserTableSection';
Expand Down Expand Up @@ -36,7 +39,7 @@ export function StudyAccess({
return (
<div className={cx()}>
<div className={cx('--TitleLine')}>
<h1>{title}</h1>
<h1>{typeof title === 'string' ? safeHtml(title) : title}</h1>
</div>
<UserTableSection {...endUserTableConfig} />
<UserTableSection {...providerTableConfig} />
Expand Down

0 comments on commit e3c2c57

Please sign in to comment.