Skip to content

Commit

Permalink
fix up type errors
Browse files Browse the repository at this point in the history
  • Loading branch information
blackforestboi committed Feb 27, 2024
1 parent 7620d75 commit ec2c6ae
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/annotations/components/AnnotationFooter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import * as React from 'react'
export interface AnnotationFooterEventProps {
onDeleteConfirm: React.MouseEventHandler
onDeleteCancel: React.MouseEventHandler
onDeleteIconClick: React.MouseEventHandler
onDeleteIconClick: (instaDelete?: boolean) => void
onEditIconClick: React.MouseEventHandler
onEditHighlightIconClick: React.MouseEventHandler
onShareClick: React.MouseEventHandler
Expand Down
3 changes: 3 additions & 0 deletions src/dashboard-refactor/search-results/logic.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,7 @@ describe('Dashboard search results logic', () => {
await searchResults.processEvent('setDeletingPageArgs', {
pageId,
day: PAGE_SEARCH_DUMMY_DAY,
instaDelete: false,
})
expect(searchResults.state.modals.deletingPageArgs).toEqual({
pageId,
Expand Down Expand Up @@ -331,6 +332,7 @@ describe('Dashboard search results logic', () => {
await searchResults.processEvent('setDeletingPageArgs', {
pageId,
day: PAGE_SEARCH_DUMMY_DAY,
instaDelete: true,
})
expect(searchResults.state.modals.deletingPageArgs).toEqual({
pageId,
Expand Down Expand Up @@ -1434,6 +1436,7 @@ describe('Dashboard search results logic', () => {
await searchResults.processEvent('setDeletingPageArgs', {
pageId,
day: DATA.DAY_1,
instaDelete: false,
})
expect(searchResults.state.modals.deletingPageArgs).toEqual(
{
Expand Down

0 comments on commit ec2c6ae

Please sign in to comment.