Skip to content

Commit

Permalink
fix a few type errors
Browse files Browse the repository at this point in the history
  • Loading branch information
blackforestboi committed Jun 13, 2024
1 parent 491798e commit a7d38ce
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 7 deletions.
4 changes: 1 addition & 3 deletions src/annotations/components/AnnotationEditable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1697,9 +1697,7 @@ const ActionFooterStyled = styled(DefaultFooterStyled)`
padding: 0 0px 0px 0px;
`

const HighlightActionsBox = styled.div<{
compactVersion: boolean
}>`
const HighlightActionsBox = styled.div<{}>`
position: absolute;
right: 0px;
display: flex;
Expand Down
5 changes: 3 additions & 2 deletions src/dashboard-refactor/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1066,9 +1066,10 @@ export class DashboardContainer extends StatefulUIElement<
})
}}
spaceSearchSuggestions={this.state.spaceSearchSuggestions}
shiftSelectItems={(itemData) =>
shiftSelectItems={(itemId: string, type: 'notes' | 'pages') =>
this.processEvent('shiftSelectItems', {
item: itemData,
itemId: itemId,
type: type,
})
}
pageInteractionProps={{
Expand Down
4 changes: 3 additions & 1 deletion src/dashboard-refactor/search-results/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -769,7 +769,9 @@ export default class SearchResultsContainer extends React.Component<
interactionProps.onMatchingTextToggleClick
}
selectItem={this.props.onBulkSelect}
shiftSelectItem={() => this.shiftSelectItems(page.pageId)}
shiftSelectItem={() =>
this.props.shiftSelectItems(page.pageId, 'pages')
}
isBulkSelected={this.props.selectedItems?.includes(
page.normalizedUrl,
)}
Expand Down
5 changes: 4 additions & 1 deletion src/dashboard-refactor/search-results/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,10 @@ export type Events = UIEvent<{
setPageTagPickerShown: PageEventArgs & { isShown: boolean }
setPageShareMenuShown: PageEventArgs & { isShown: boolean }
setPageNotesShown: PageEventArgs & { areShown: boolean }
shiftSelectItems: PageEventArgs & { selectedIndex; type: 'notes' | 'pages' }
shiftSelectItems: {
itemId: string
type: 'notes' | 'pages'
}
onMatchingTextToggleClick: PageEventArgs
setActivePage: {
activePage: boolean
Expand Down

0 comments on commit a7d38ce

Please sign in to comment.