Skip to content

Commit

Permalink
Merge branch 'main' into fix/SILVA-403
Browse files Browse the repository at this point in the history
  • Loading branch information
paulushcgcj authored Nov 6, 2024
2 parents b154780 + 290c1c0 commit 74be87f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions frontend/src/__test__/components/OpeningHistory.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ describe('OpeningHistory Component', () => {

const favoriteButton = container.querySelector('.favorite-icon button')
await act(async () => favoriteButton && favoriteButton.click());

expect(deleteOpeningFavorite).toHaveBeenCalled();
});
});
4 changes: 3 additions & 1 deletion frontend/src/components/OpeningHistory/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,12 @@ import './styles.scss';
import { deleteOpeningFavorite } from '../../services/OpeningFavoriteService';
import { useNotification } from '../../contexts/NotificationProvider';

import { deleteOpeningFavorite } from '../../services/OpeningFavoriteService';

interface OpeningHistoryProps {
histories: History[];
}


const OpeningHistory: React.FC<OpeningHistoryProps> = ({ histories }: OpeningHistoryProps) => {
const { displayNotification } = useNotification();

Expand Down Expand Up @@ -44,6 +45,7 @@ const OpeningHistory: React.FC<OpeningHistoryProps> = ({ histories }: OpeningHis
};

return (

<div className='px-3 pb-3'>
<div className="row activity-history-container gx-4">
{histories.map((history, index) => (
Expand Down

0 comments on commit 74be87f

Please sign in to comment.