Skip to content

Commit

Permalink
Fix ignored Types
Browse files Browse the repository at this point in the history
  • Loading branch information
olliecurtis committed Aug 15, 2024
1 parent b4f6edd commit a0821cb
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 1 addition & 2 deletions packages/bpk-component-calendar/src/BpkCalendarContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -222,8 +222,7 @@ const withCalendarState = <P extends object>(Calendar: ComponentType<P>) => {

const minDate = startOfDay(nextProps.minDate!);
const maxDate = startOfDay(nextProps.maxDate!);
// @ts-ignore
if (focusedDateHasChanged(this.props, nextProps)) {
if (focusedDateHasChanged(this.props as CalendarProps<P>, nextProps as CalendarProps<P>)) {
this.setState({
focusedDate: dateToBoundaries(
rawNextSelectedDate[0],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@

import { render } from '@testing-library/react';

// @ts-ignore
import { BpkButtonV2 } from '../../bpk-component-button';

import BpkSectionHeader, { SECTION_TYPES } from './BpkSectionHeader';
Expand Down

0 comments on commit a0821cb

Please sign in to comment.