Skip to content

Commit

Permalink
Merge pull request #1092 from culturecreates/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
sahalali authored May 6, 2024
2 parents 0f6066a + 714c7ff commit d47c76b
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 5 deletions.
7 changes: 5 additions & 2 deletions src/components/List/ListItem.jsx/ListItem.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@ function ListItem(props) {
<List.Item
data-cy="list-item-entity"
className="event-list-item-wrapper"
onClick={listItemHandler}
key={id}
extra={actions}
style={{ padding: '20px 0px', ...props?.styles?.style }}>
<List.Item.Meta
className="event-list-item-meta"
onClick={listItemHandler}
data-cy="list-item-meta-entity"
avatar={
logo ? (
Expand Down Expand Up @@ -80,7 +80,10 @@ function ListItem(props) {
title={
artsDataLink && (
<ArtsDataLink
onClick={() => window.open(`${artsDataLink}`, '_blank', 'noopener,noreferrer')}
onClick={(e) => {
e.stopPropagation();
window.open(`${artsDataLink}`, '_blank', 'noopener,noreferrer');
}}
data-cy="tag-entity-artsdata">
<span style={{ textDecoration: 'underline' }} data-cy="span-entity-artsdata">
Artsdata
Expand Down
5 changes: 4 additions & 1 deletion src/pages/Dashboard/Organizations/Organizations.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,10 @@ function Organizations() {
<DeleteOutlined
key={'delete-icon'}
style={{ color: '#222732', fontSize: '24px' }}
onClick={() => deleteOrganizationHandler(item?.id)}
onClick={(e) => {
e.stopPropagation();
deleteOrganizationHandler(item?.id);
}}
data-cy="delete-organization"
/>
),
Expand Down
5 changes: 4 additions & 1 deletion src/pages/Dashboard/People/People.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,10 @@ function People() {
data-cy="icon-delete-person"
key={'delete-icon'}
style={{ color: '#222732', fontSize: '24px' }}
onClick={() => deletePersonHandler(item?.id)}
onClick={(e) => {
e.stopPropagation();
deletePersonHandler(item?.id);
}}
/>
),
]}
Expand Down
5 changes: 4 additions & 1 deletion src/pages/Dashboard/Places/Places.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,10 @@ function Places() {
data-cy="icon-delete-place"
key={'delete-icon'}
style={{ color: '#222732', fontSize: '24px' }}
onClick={() => deletePlaceHandler(item?.id)}
onClick={(e) => {
e.stopPropagation();
deletePlaceHandler(item?.id);
}}
/>
),
]}
Expand Down

0 comments on commit d47c76b

Please sign in to comment.