Skip to content

Commit

Permalink
Remove date and email from sharedWith list
Browse files Browse the repository at this point in the history
  • Loading branch information
jernestmyers committed Oct 20, 2023
1 parent c0e00ee commit bd77767
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -216,10 +216,9 @@ class UserDatasetDetail extends React.Component {
attribute: 'Shared with',
value: (
<ul>
{sharedWith.map((share) => (
<li key={share.email}>
{share.userDisplayName} &lt;{share.email}&gt;{' '}
<DateTime datetime={share.time} />
{sharedWith.map((share, index) => (
<li key={`${share.userDisplayName}-${index}`}>
{share.userDisplayName}
</li>
))}
</ul>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import {
import { WdkDependenciesContext } from '@veupathdb/wdk-client/lib/Hooks/WdkDependenciesEffect';

import { isUserDatasetsCompatibleWdkService } from '../../Service/UserDatasetWrappers';
import { DateTime } from '../DateTime';

import './UserDatasetSharingModal.scss';

Expand Down Expand Up @@ -218,11 +217,10 @@ class UserDatasetSharingModal extends React.Component {
}

renderShareItem(share, index, userDataset) {
const { user, time, userDisplayName } = share;
const { user, userDisplayName } = share;
return (
<div key={index}>
<span className="faded">Shared with</span> <b>{userDisplayName}</b>{' '}
<DateTime datetime={time} />
<button
type="button"
onClick={() => this.unshareWithUser(userDataset.id, user)}
Expand Down

0 comments on commit bd77767

Please sign in to comment.