update for warnings

This commit is contained in:
Valeras Narbutas 2023-12-01 00:28:17 +02:00
parent 6ca5bbd8c5
commit e5628d0e61
1 changed files with 2 additions and 4 deletions

View File

@ -44,7 +44,7 @@ export default class AdventCalendar extends React.Component<IAdventCalendarProps
}; };
} }
private openDay = (day: number) => { private openDay = (day: number):void => {
this.setState(prevState => ({ this.setState(prevState => ({
openedDays: prevState.openedDays.add(day), openedDays: prevState.openedDays.add(day),
contents: prevState.contents, contents: prevState.contents,
@ -54,12 +54,10 @@ export default class AdventCalendar extends React.Component<IAdventCalendarProps
public render(): React.ReactElement<IAdventCalendarProps> { public render(): React.ReactElement<IAdventCalendarProps> {
const {
} = this.props;
const { openedDays, contents } = this.state; const { openedDays, contents } = this.state;
let days = []; const days = [];
for (let i = 1; i <= 24; i++) { for (let i = 1; i <= 24; i++) {
days.push(i); days.push(i);
} }