mirror of
https://github.com/quantum5/qcal.git
synced 2025-07-26 19:34:10 -04:00
frcal: fix inadvertent use of JulianMonth
This commit is contained in:
parent
af113d9fe6
commit
3cdbfd8ca0
|
@ -1,7 +1,6 @@
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import {Calendar} from './Calendar';
|
import {Calendar} from './Calendar';
|
||||||
import {FrenchMonth, frEndJD, frStartJD, frSupportedYear, jdnFrench} from '@common/french';
|
import {FrenchMonth, frEndJD, frStartJD, frSupportedYear, jdnFrench} from '@common/french';
|
||||||
import {JulianMonth} from '@common/gregorian';
|
|
||||||
import {TimeOfDay} from './TimeOfDay';
|
import {TimeOfDay} from './TimeOfDay';
|
||||||
import {GregorianJumper} from '@common/dateJump';
|
import {GregorianJumper} from '@common/dateJump';
|
||||||
import MonthBasedApp from '@common/ui/MonthBasedApp';
|
import MonthBasedApp from '@common/ui/MonthBasedApp';
|
||||||
|
@ -11,7 +10,7 @@ export default class App extends MonthBasedApp<number, FrenchMonth> {
|
||||||
override parseYearMonth(year: string, month: string) {
|
override parseYearMonth(year: string, month: string) {
|
||||||
if (!frSupportedYear(+year) || +month < 1 || +month > 13)
|
if (!frSupportedYear(+year) || +month < 1 || +month > 13)
|
||||||
return null;
|
return null;
|
||||||
return {year: +year, month: +month as JulianMonth};
|
return {year: +year, month: +month as FrenchMonth};
|
||||||
}
|
}
|
||||||
|
|
||||||
override defaultSelector(todayJDN: number) {
|
override defaultSelector(todayJDN: number) {
|
||||||
|
|
Loading…
Reference in a new issue