Skip to content

Commit

Permalink
Merge pull request #1074 from VEuPathDB/enable-html-in-study-access-d…
Browse files Browse the repository at this point in the history
…ashboard-title

Enable HTML in study access dashboard's title
  • Loading branch information
jernestmyers committed May 6, 2024
2 parents 8b14eb8 + e3c2c57 commit d7c2e91
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 d7c2e91

Please sign in to comment.